Elastic Search Analyzer at search time not working
Create the Index with Query-Time Analyzer Only: PUT /local_persons { “settings”: { “analysis”: { “analyzer”: { “person_search_analyzer”: { “type”: “custom”, “char_filter”: [“remove_special_chars”], “filter”: [“lowercase”], “tokenizer”: “whitespace” } }, “char_filter”: { “remove_special_chars”: { “type”: “pattern_replace”, “pattern”: “[^a-zA-Z0-9]”, “replacement”: “” } } } } } Indexed the data with special characters: PUT /local_persons/_doc/1 { “id”: 1, “firstName”: […]