Skip to content

Commit

Permalink
Add standardnumber and unique token filters to ES analyzers
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Altmann committed Nov 2, 2015
1 parent 78544ac commit 2b14603
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/chewy/articles_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ class ArticlesIndex < Chewy::Index
german_analyzer: {
type: 'custom',
tokenizer: 'hyphen',
filter: %w(lowercase german_stop german_normalization german_decompound german_stemming)
filter: %w(lowercase german_stop german_normalization german_decompound german_stemming
standardnumber unique)
},
german_search_analyzer: {
type: 'custom',
tokenizer: 'hyphen',
filter: %w(lowercase german_stop german_normalization german_stemming)
filter: %w(lowercase german_stop german_normalization german_stemming standardnumber unique)
}
}
}
Expand Down

0 comments on commit 2b14603

Please sign in to comment.