Re: Aggregation on boolean

2014-08-11 Thread Fabian Köstring
Sry! It was caused by different indexes. Am Montag, 11. August 2014 10:18:25 UTC+2 schrieb Fabian Köstring: > > Hey there! > > I got one index with two types. I want to do a aggragtion query. > This is my query. > > > GET index1/type1,type2/_search > { >"query": { > "match_all": {} >

Aggregation on boolean

2014-08-11 Thread Fabian Köstring
Hey there! I got one index with two types. I want to do a aggragtion query. This is my query. GET index1/type1,type2/_search { "query": { "match_all": {} }, "size" : 0, "aggs": { "myaggregation": { "terms": { "field": "boolean_field" }