Skip to content

Instantly share code, notes, and snippets.

@rauanmayemir
Last active October 6, 2015 14:38
Show Gist options
  • Save rauanmayemir/650e1882ef480a6a39ae to your computer and use it in GitHub Desktop.
Save rauanmayemir/650e1882ef480a6a39ae to your computer and use it in GitHub Desktop.
Elasticsearch default analyzer russian morphology
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