bgneal@323: """ bgneal@323: Haystack search index for the Yahoo Group archives application. bgneal@323: bgneal@323: """ bgneal@323: from haystack.indexes import * bgneal@323: from haystack import site bgneal@469: from custom_search.indexes import CondQueuedSearchIndex bgneal@323: bgneal@323: from ygroup.models import Post bgneal@323: bgneal@323: bgneal@467: class PostIndex(CondQueuedSearchIndex): bgneal@323: text = CharField(document=True, use_template=True) bgneal@323: pub_date = DateTimeField(model_attr='creation_date') bgneal@323: bgneal@323: def get_updated_field(self): bgneal@323: return 'creation_date' bgneal@323: bgneal@323: bgneal@323: site.register(Post, PostIndex)