Skip to content

Instantly share code, notes, and snippets.

@aayush2610
Last active Feb 4, 2019
Embed
What would you like to do?
//Every query goes through this analyzer
"search_analyzer": {
"type": "custom",
"tokenizer": "standard",
"char_filter": [
"ampersand",
],
"filter": [
"lowercase",
"asciifolding",
"snowball_stemmer"
]
}
//converts '&' to 'and'
"char_filter": {
"ampersand": {
"type": "pattern_replace",
"pattern": "\\s*&\\s*",
"replacement": " and "
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment