bgneal@224: """Haystack search index for the news application.""" bgneal@224: from haystack.indexes import * bgneal@224: from haystack import site bgneal@224: from podcast.models import Item bgneal@224: bgneal@224: bgneal@224: class ItemIndex(SearchIndex): bgneal@224: text = CharField(document=True, use_template=True) bgneal@224: author = CharField(model_attr='author') bgneal@224: pub_date = DateTimeField(model_attr='pubdate') bgneal@224: bgneal@224: bgneal@224: site.register(Item, ItemIndex)