Permalink
Browse files

Subclass RealTimeSearchIndex vice normal SearchIndex.

  • Loading branch information...
mattdeboard committed Dec 24, 2011
1 parent 6d0930e commit 396ddcfa51e855f97cc9acadd818f7f83ca86eaa
Showing with 1 addition and 1 deletion.
  1. +1 −1 yuk/search_indexes.py
View
@@ -2,7 +2,7 @@
from haystack import indexes
from yuk.models import Item
-class ItemIndex(indexes.SearchIndex, indexes.Indexable):
+class ItemIndex(indexes.RealTimeSearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
author = indexes.CharField(model_attr='user')
private = indexes.CharField(model_attr='privacy_mode')

0 comments on commit 396ddcf

Please sign in to comment.