Hi Colin, 

Thanks for getting back to me so quick. I'm running my query against a 
1.3.1 cluster and still seeing "key_as_string", even though no format 
parameter is in the query. My query is below:

{
  "query": {
    "filtered": {
      "query": {
        "match_all": {}
      }
    }
  },
  "aggs": {
    "topics": {
      "terms": {
        "size": 10,
        "field": "content.topics"
      }
    }
  }
}

In the mapping, the content.topics field is defined as an integer. The data 
was indexed pre-upgrade, though I can't imagine that would make a 
difference? Any ideas?

Thanks, 
James


On Friday, August 1, 2014 12:40:24 PM UTC+1, Colin Goodheart-Smithe wrote:
>
> Hi James,
>
> This issue was brought up recently in the github issues list[1] and has 
> been fixed[2].  It should be available in the version 1.3.0.
>
> [1] https://github.com/elasticsearch/elasticsearch/issues/6655
>
> [2] https://github.com/elasticsearch/elasticsearch/pull/6830
>
> Regards,
>
> Colin
>
> On Friday, 1 August 2014 12:22:21 UTC+1, James Griffin wrote:
>>
>> Hi, 
>>
>> We're performing some aggregations with size=0 on a lot of data, and I'm 
>> looking to optimise the transfer over the wire. Our responses look like 
>> this:
>>
>> "buckets": [
>>    
>>    - {
>>       - "key": 15,
>>       - "key_as_string": "15",
>>       - "doc_count": 8183
>>    },
>>    - {
>>       - "key": 100,
>>       - "key_as_string": "100",
>>       - "doc_count": 4717
>>    },
>>    ...
>>
>>
>> Obviously, the key_as_string field is adding nothing in this instance. Is 
>> there a way to ask for it to be excluded from the response?
>>
>> Cheers,
>> James
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/1159e4b9-4278-4187-8f78-d404bc73b016%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to