A agregação do Elasticsearch transforma resultados em minúsculas

Joguei um pouco com o ElasticSearch e encontrei um problema ao fazer agregações.

Eu tenho dois pontos finais,/UMA e/ B. No primeiro, tenho pais para o segundo. Portanto, um ou mais objetos em B devem pertencer a um objeto em A. Portanto, os objetos em B têm um atributo "parentId" com o índice pai gerado pelo ElasticSearch.

Quero filtrar os pais em A pelos atributos filhos de B. Para fazer isso, primeiro filho os filhos em B por atributos e obtenho seus IDs de pai únicos que usarei mais tarde para obter pais.

Eu envio este pedido:

POST http://localhost:9200/test/B/_search
{
    "query": {
        "query_string": {
            "default_field": "name",
            "query": "derp2*"
        }
    },
    "aggregations": {
        "ids": {
            "terms": {
                "field": "parentId"
            }
        }
    }
}

E obtenha esta resposta:

{
  "took": 91,
  "timed_out": false,
  "_shards": {
    "total": 5,
    "successful": 5,
    "failed": 0
  },
  "hits": {
    "total": 3,
    "max_score": 1,
    "hits": [
      {
        "_index": "test",
        "_type": "child",
        "_id": "AU_fjH5u40Hx1Kh6rfQG",
        "_score": 1,
        "_source": {
          "parentId": "AU_ffvwM40Hx1Kh6rfQA",
          "name": "derp2child2"
        }
      },
      {
        "_index": "test",
        "_type": "child",
        "_id": "AU_fjD_U40Hx1Kh6rfQF",
        "_score": 1,
        "_source": {
          "parentId": "AU_ffvwM40Hx1Kh6rfQA",
          "name": "derp2child1"
        }
      },
      {
        "_index": "test",
        "_type": "child",
        "_id": "AU_fjKqf40Hx1Kh6rfQH",
        "_score": 1,
        "_source": {
          "parentId": "AU_ffvwM40Hx1Kh6rfQA",
          "name": "derp2child3"
        }
      }
    ]
  },
  "aggregations": {
    "ids": {
      "doc_count_error_upper_bound": 0,
      "sum_other_doc_count": 0,
      "buckets": [
        {
          "key": "au_ffvwm40hx1kh6rfqa",
          "doc_count": 3
        }
      ]
    }
  }
}

Por algum motivo, a chave filtrada é retornada em minúscula, portanto, não é possível solicitar o pai ao ElasticSearch

GET http://localhost:9200/test/A/au_ffvwm40hx1kh6rfqa

Response:
{
  "_index": "test",
  "_type": "A",
  "_id": "au_ffvwm40hx1kh6rfqa",
  "found": false
}

Alguma idéia de por que isso está acontecendo?

questionAnswers(1)

yourAnswerToTheQuestion