aboutsummaryrefslogtreecommitdiffstats
path: root/97suifangqa/apps/indicator/search_indexes.py
diff options
context:
space:
mode:
Diffstat (limited to '97suifangqa/apps/indicator/search_indexes.py')
-rw-r--r--97suifangqa/apps/indicator/search_indexes.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/97suifangqa/apps/indicator/search_indexes.py b/97suifangqa/apps/indicator/search_indexes.py
index f225b2c..aa0653d 100644
--- a/97suifangqa/apps/indicator/search_indexes.py
+++ b/97suifangqa/apps/indicator/search_indexes.py
@@ -12,7 +12,7 @@ class IndicatorCategoryIndex(indexes.SearchIndex, indexes.Indexable):
search index for 'Indicator'
"""
text = indexes.CharField(document=True, use_template=True)
- # pinyin: for ordering the search result
+ # fields used to filter results
pinyin = indexes.CharField(model_attr='pinyin')
addByUser = indexes.CharField(model_attr='addByUser')
@@ -33,8 +33,9 @@ class IndicatorIndex(indexes.SearchIndex, indexes.Indexable):
search index for 'Indicator'
"""
text = indexes.CharField(document=True, use_template=True)
- # pinyin: for ordering the search result
+ # fields used to filter results
pinyin = indexes.CharField(model_attr='pinyin')
+ type = indexes.CharField(model_attr='type')
addByUser = indexes.CharField(model_attr='addByUser')
dataType = indexes.CharField(model_attr='dataType')
categories_id = indexes.MultiValueField()