Hi, after spending hours trying to figure out I need a help with:
How to search accent-insensitive + case insensitive?
I have created an index:
curl -X PUT "localhost:9200/my_index?pretty" -H 'Content-Type: application/json' -d'
{
  "settings": {
    "analysis": {
      "analyzer": {
        "foo": { 
          "type": "custom",
          "tokenizer": "standard",
          "filter": [
            "lowercase",
            "asciifolding"
          ]
        }
      }
    }
  },
  "mappings": {
    "properties": {
      "text": {
        "type": "text",
        "analyzer": "foo", 
        "search_analyzer": "foo" 
      }
    }
  }
}
'
Insert data:
curl -X PUT "localhost:9200/my_index/_doc/1?pretty" -H 'Content-Type: application/json' -d'
{
  "text": "Perlová" 
}
'
And then try to search the steet name:
curl -X GET "localhost:9200/my_index/_search?pretty" -H 'Content-Type: application/json' -d'
{
  "query": {
    "match": {
      "text": {
        "query": "perlova"
      }
    }
  }
}
'
I would expected to get the result, but nothing is found. It works only If I write the exact word with all accents, but I also need the street to be found, when I search it without accent. Any help would be appreciated. Thank you.