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@323: bgneal@323: from ygroup.models import Post bgneal@323: bgneal@323: bgneal@323: class PostIndex(SearchIndex): 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)