Skip to content

Instantly share code, notes, and snippets.

Created July 21, 2017 10:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/dc84e31ff7f40ea3085390050a73edb8 to your computer and use it in GitHub Desktop.
Save anonymous/dc84e31ff7f40ea3085390050a73edb8 to your computer and use it in GitHub Desktop.
ES settings
{
"index": {
"analysis": {
"tokenizer": {
"whitespace": { "type": "whitespace"}
},
"char_filter": {
"incorrect_symbols": {
"type": "pattern_replace",
"pattern": "[^a-zA-ZА-Яа-я0-9\\s]",
"replacement": ""
}
},
"filter": {
"object_name_stop": {
"type": "stop",
"stopwords": ["д", "дом", "ул", "улица", "пр", "проспект", "прпкт", "строение", "стр", "пос", "поселок", "край", "область", "республика", "город", "г", "п", "переулок", "пер", "корп", "корпус", "к"]
}
},
"analyzer": {
"address": {
"type": "custom",
"language": "Russian",
"tokenizer": "whitespace",
"filter": ["trim", "lowercase", "object_name_stop"],
"char_filter": [
"incorrect_symbols"
]
}
}}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment