Last active
October 6, 2015 14:38
-
-
Save rauanmayemir/650e1882ef480a6a39ae to your computer and use it in GitHub Desktop.
Elasticsearch default analyzer russian morphology
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
curl -XPUT 'http://localhost:9200/rustest' -d '{ | |
"settings": { | |
"analysis": { | |
"analyzer": { | |
"my_analyzer": { | |
"type": "custom", | |
"tokenizer": "standard", | |
"filter": ["lowercase", "russian_morphology", "english_morphology", "my_stopwords"] | |
}, | |
"default": {"type": "my_analyzer"} | |
}, | |
"filter": { | |
"my_stopwords": { | |
"type": "stop", | |
"stopwords": "а,без,..." | |
} | |
} | |
} | |
} | |
}' && echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment