Hi guys
I am using Java API Elasticsearch 7.4 and would like to know how to do in Java to search for texts with accents, for example:
"João de Souza Antonio"
But to no avail. I've tried using Term, Match, Wildcard, but none worked. Reading more about the documentation I saw the option to use filters like:
"index" : {
"analysis" : {
"analyzer" : {
"default" : {
"tokenizer" : "standard",
"filter" : ["standard", "my_ascii_folding"]
}
},
"filter" : {
"my_ascii_folding" : {
"type" : "asciifolding",
"preserve_original" : true
}
}
}
}
But how would you do it in Java?
Thank you