Skip to content

Instantly share code, notes, and snippets.

@patrickkeller
Created April 12, 2013 20:45
Show Gist options
  • Save patrickkeller/5375008 to your computer and use it in GitHub Desktop.
Save patrickkeller/5375008 to your computer and use it in GitHub Desktop.
tire custom filter settings model
settings analysis: {
analyzer: {
custom_analyzer: {
tokenizer: [ "whitespace", "lowercase" ],
filter: [ "ngram_filter", "word_delimiter_filter" ],
type: "custom"
}
},
filter: {
ngram_filter: {
type: "nGram",
min_gram: 2,
max_gram: 15
}
},
filter: {
word_delimiter_filter: {
type: "word_delimiter",
generate_word_parts: true,
generate_number_parts: true,
preserve_original: true,
stem_english_possessive: true
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment