Skip to content

Instantly share code, notes, and snippets.

@sfussenegger
Created June 6, 2012 13:47
Show Gist options
  • Save sfussenegger/2881950 to your computer and use it in GitHub Desktop.
Save sfussenegger/2881950 to your computer and use it in GitHub Desktop.
ES analysis conf
"analysis": {
"char_filter": {
"my_mapping": {
"type": "mapping",
"mappings": [ /* snip */ ]
}
},
"filter": {
"my_stop": {
"type": "stop",
"stopwords": [ /* snip */ ]
},
"my_synonyms": {
"type": "synonym",
"synonyms": [ /* snip */ ]
}
},
"analyzer": {
"default": {
"type": "custom",
"char_filter": "my_mapping",
"tokenizer": "standard",
"filter": [ "asciifolding", "standard", "lowercase", "my_stop", "my_synonyms" ]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment