Hi All,
I'm trying to return results for names with Diacritics . I want to be able to search using regular characters and receive all results, including names with diacritics (Example: want to search for Jose and return all results with Jóse).
I have updated my settings to the following:
{
"analysis": {
"filter": {
"edge_ngram_filter": {
"type": "edgeNGram",
"min_gram": "1",
"max_gram": "25"
},
"my_ascii_folding": {
"type": "asciifolding",
"preserve_original": "true"
}
},
"normalizer": {
"keyword_normalizer": {
"filter": [
"lowercase"
],
"type": "custom",
"char_filter": []
}
},
"analyzer": {
"input_analyzer": {
"filter": [
"lowercase",
"my_ascii_folding"
],
"type": "custom",
"tokenizer": "whitespace"
},
"autocomplete": {
"filter": [
"lowercase",
"edge_ngram_filter"
],
"type": "custom",
"tokenizer": "whitespace"
},
"email_analyzer": {
"tokenizer": "email_tokenizer"
}
},
"tokenizer": {
"email_tokenizer": {
"type": "uax_url_email"
}
}
}
}
The following is the sample mapping:
"lastName": {
"type": "text",
"fields": {
"aggregation": {
"type": "keyword"
},
"keyword": {
"type": "keyword",
"normalizer": "keyword_normalizer"
}
},
"analyzer": "autocomplete",
"search_analyzer": "input_analyzer"
}
Any help is appreciated.