Elasticsearch asciifolding not working properly
Try this, to prove that Elasticsearch does a good job in the end. I suspect the Sense interface is not passing the correct text to the analyzer.
PUT /my_index
{
"settings": {
"analysis": {
"analyzer": {
"folding": {
"tokenizer": "standard",
"filter": [ "lowercase", "asciifolding" ]
}
}
}
},
"mappings": {
"test": {
"properties": {
"text": {
"type": "string",
"analyzer": "folding"
}
}
}
}
}
POST /my_index/test/1
{
"text": "olá"
}
GET /my_index/test/_search
{
"fielddata_fields": ["text"]
}
The result:
"hits": {
"total": 1,
"max_score": 1,
"hits": [
{
"_index": "my_indexxx",
"_type": "test",
"_id": "1",
"_score": 1,
"_source": {
"text": "olá"
},
"fields": {
"text": [
"ola"
]
}
}
]
}