Skip to content

Instantly share code, notes, and snippets.

@evanwong
Created September 10, 2013 15:30
Show Gist options
  • Save evanwong/6511134 to your computer and use it in GitHub Desktop.
Save evanwong/6511134 to your computer and use it in GitHub Desktop.
example for defining a global analyzer in the elasticsearch.yml v0.90.3
index.analysis.analyzer.ngramAnalyzer :
tokenizer : ngramTokenizer
filter : [standard, lowercase, stop]
index.analysis.tokenizer.ngramAnalyzer :
type : nGram
min_gram: 3
max_gram: 10
token_chars: [letter, digit]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment