Hello all,

I've tested  with versions 1.0.0, 1.1.0 and 1.1.1 and the  size property 
doesn't seam to work.

The following works using facets:
{
  "size": "0",
  "facets": {
    "facettest": {
      "terms": {
        "field": "somefield",
        "size": "5"
      }
    }
  }
}

The response contains 5 terms as expected, but changing to aggregations:

{
  "size": "0",
  "aggs": {
    "aggtest": {
      "terms": {
        "field": "somefield",
        "size": "5"
      }
    }
  }
}

Return an 400 error message ending with "Parse Failure [Unknown key for a 
VALUE_STRING in [aggtest]: [size].]]; }]".

Is there any special requirement or configuration for this to work? The 
documentation talks about this property since some time in 
http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-aggregations-bucket-terms-aggregation.html#_size_amp_shard_size
 
but doesn't actually show an usage example.

Cheers,
Oswaldo

-- 
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/126c98a7-9d6e-4709-b6d9-8fe11e0c3b5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to