Skip to content

Commit

Permalink
dont exclude advanced_search so we can use it for autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosp420 committed May 8, 2015
1 parent 914614f commit 4491df9
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion voseq/public_interface/search_indexes.py
Expand Up @@ -38,7 +38,7 @@ class AutoCompleteIndex(SimpleSearchIndex):
:param indexes.SearchIndex:
:param indexes.Indexable:
"""
text = indexes.CharField(document=True, use_template=True)
text = indexes.EdgeNgramField(document=True, use_template=True)
author = indexes.EdgeNgramField(model_attr='author', null=True)

country = indexes.EdgeNgramField(model_attr='country', null=True)
Expand Down
1 change: 0 additions & 1 deletion voseq/public_interface/tests/test_advanced_search.py
Expand Up @@ -25,7 +25,6 @@
'INCLUDE_SPELLING': False,
'EXCLUDED_INDEXES': [
'public_interface.search_indexes.SimpleSearchIndex',
'public_interface.search_indexes.AdvancedSearchIndex',
'public_interface.search_indexes.VouchersIndex',
],
},
Expand Down
1 change: 0 additions & 1 deletion voseq/public_interface/tests/test_views.py
Expand Up @@ -25,7 +25,6 @@
'INCLUDE_SPELLING': False,
'EXCLUDED_INDEXES': [
'public_interface.search_indexes.SimpleSearchIndex',
'public_interface.search_indexes.AdvancedSearchIndex',
'public_interface.search_indexes.VouchersIndex',
],
},
Expand Down
1 change: 0 additions & 1 deletion voseq/voseq/settings/base.py
Expand Up @@ -89,7 +89,6 @@
'INCLUDE_SPELLING': False,
'EXCLUDED_INDEXES': [
'public_interface.search_indexes.SimpleSearchIndex',
'public_interface.search_indexes.AdvancedSearchIndex',
'public_interface.search_indexes.VouchersIndex',
],
},
Expand Down

0 comments on commit 4491df9

Please sign in to comment.