Last active
February 4, 2019 12:35
-
-
Save aayush2610/f8e8ee3f6937fdaf6e94c74ff45ae498 to your computer and use it in GitHub Desktop.
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
//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