Commits

ghorvath committed 0b3ca31

enabled search for substrings

Comments (0)

Files changed (1)

freieit/search_indexes.py

 from freieit.models import ExpertProfile
 
 class ExpertProfileIndex(indexes.SearchIndex):
-    text = indexes.CharField(document=True, use_template=True)
+    text = indexes.EdgeNgramField(document=True, use_template=True)
     #name = indexes.CharField(model_attr='name')
     #location = indexes.CharField(model_attr='location')
     #services = indexes.CharField(model_attr='services')