Skip to content

Instantly share code, notes, and snippets.

@bogdan-dumitrescu
Created January 23, 2014 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bogdan-dumitrescu/44d427d0f16b7437cb9f to your computer and use it in GitHub Desktop.
Save bogdan-dumitrescu/44d427d0f16b7437cb9f to your computer and use it in GitHub Desktop.
elasticsearch settings file
{
"analysis": {
"analyzer": {
"keyword_lowercase": {
"type": "custom",
"tokenizer": "keyword",
"filter": ["lowercase"]
},
"keyword_lowercase_truncate": {
"type": "custom",
"tokenizer": "keyword",
"filter": ["lowercase", "custom_truncate"]
},
"text_ascii": {
"type": "custom",
"tokenizer": "whitespace",
"filter": [
"asciifolding",
"lowercase",
"custom_word_delimiter"
]
}
},
"filter": {
"custom_word_delimiter": {
"type": "word_delimiter",
"generate_word_parts": true,
"generate_number_parts": false,
"catenate_numbers": true,
"catenate_words": false,
"split_on_case_change": false,
"split_on_numerics": false,
"stem_english_possessive": false
},
"custom_truncate": {
"type": "truncate",
"length": "20"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment