comparison gpp/weblinks/search_indexes.py @ 533:387d46abcb95

Updated to Haystack 1.2.6. Got the latest Haystack, xapian backend, and queued_search from PyPi. This is for ticket #215.
author Brian Neal <bgneal@gmail.com>
date Mon, 26 Dec 2011 23:05:29 +0000
parents 3b30286adba5
children
comparison
equal deleted inserted replaced
532:ff67946fd4b0 533:387d46abcb95
9 class LinkIndex(CondQueuedSearchIndex): 9 class LinkIndex(CondQueuedSearchIndex):
10 text = CharField(document=True, use_template=True) 10 text = CharField(document=True, use_template=True)
11 author = CharField(model_attr='user') 11 author = CharField(model_attr='user')
12 pub_date = DateTimeField(model_attr='date_added') 12 pub_date = DateTimeField(model_attr='date_added')
13 13
14 def get_queryset(self): 14 def index_queryset(self):
15 return Link.public_objects.all() 15 return Link.public_objects.all()
16 16
17 def get_updated_field(self): 17 def get_updated_field(self):
18 return 'update_date' 18 return 'update_date'
19 19