Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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