Skip to content

Instantly share code, notes, and snippets.

@juneym
Created July 8, 2011 00:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juneym/1070860 to your computer and use it in GitHub Desktop.
Save juneym/1070860 to your computer and use it in GitHub Desktop.
custom analyzer nGram
index:
refresh_interval: 2
analysis:
analyzer:
ascAnalyzer1:
type: custom
tokenizer: "standard"
filter: [lowercase, synonym, myNGram, snowball]
filter:
myNGram:
type: nGram
min_gram: 3
max_gram: 10
synonym:
type: synonym
synonyms_path: analysis/synonym.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment