Skip to content

Commit

Permalink
Analyze seller nickname field in ArticlesIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Altmann committed Nov 9, 2015
1 parent 987988c commit 4d65af0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/chewy/articles_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ class ArticlesIndex < Chewy::Index
# seller attributes
field :belongs_to_legal_entity?, type: 'boolean'
field :seller_ngo, type: 'boolean'
field :seller_nickname, index: :not_analyzed
# use analyzer without decompound
field :seller_nickname, analyzer: 'german_search_analyzer'
field :seller_id, index: :not_analyzed
end
end
Expand Down

0 comments on commit 4d65af0

Please sign in to comment.