Created
January 21, 2013 23:32
-
-
Save Veraticus/4590561 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
analysis: | |
filter: | |
ngrams: | |
side: front | |
max_gram: 10 | |
min_gram: 1 | |
type: edgeNGram | |
analyzer: | |
full: | |
tokenizer: standard | |
filter: ["standard", "lowercase", "asciifolding", "trim"] | |
type: custom | |
partial: | |
tokenizer: standard | |
filter: ["standard", "lowercase", "asciifolding", "ngrams", "trim"] | |
type: custom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
settings ElasticSearchAnalysis do | |
mapping do | |
indexes :name, type: 'multi_field', fields: { | |
name: {type: 'string', analyzer: 'full', boost: 3}, | |
partial: {type: 'string', search_analyzer: 'full', index_analyzer: 'partial'} | |
} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment