Created
July 21, 2017 10:55
-
-
Save anonymous/dc84e31ff7f40ea3085390050a73edb8 to your computer and use it in GitHub Desktop.
ES settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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