Help with ASCIIfolding

asciifolding is not an analyzer but a token filter.

What you want to do is something like this:

DELETE index
PUT index
{
  "settings": {
    "analysis": {
      "analyzer": {
        "my_analyzer": {
          "tokenizer": "standard",
          "filter": [ "lowercase", "asciifolding" ]
        }
      }
    }
  },
  "mappings": {
    "my_type": {
      "properties": {
        "foo": {
          "type": "string",
          "analyzer": "my_analyzer"
        }
      }
    }
  }
}