Skip to content

Commit

Permalink
Merge pull request #50 from m3brown/search_analyzer
Browse files Browse the repository at this point in the history
Fix bad elasticsearch search results
  • Loading branch information
marcesher committed Jan 5, 2016
2 parents 73925bb + 5be217c commit d60f9ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions collab/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
'cache_tools',
'crispy_forms',
'haystack',
'elasticstack',
'mptt',
'pipeline',
'reversion',
Expand Down Expand Up @@ -218,3 +219,7 @@
MIDDLEWARE_CLASSES = load_app_middlewares(MIDDLEWARE_CLASSES)

COMMENTS_APP = 'core.custom_comments'

# If using elasticsearch, override search_analyzer for ngram/edgengram fields.
# Otherwise, searching for "sample" will return any results that start with "sam"
ELASTICSEARCH_DEFAULT_NGRAM_SEARCH_ANALYZER = 'standard'
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ slimit==0.8.1
ply==3.4
django-cache-tools==0.1.1
django-haystack==2.3.2
elasticstack==0.3.0
elasticsearch==2.1.0
django-reversion==1.7
django-crispy-forms==1.3.1
Expand Down

0 comments on commit d60f9ef

Please sign in to comment.