You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to retrieve multiple aggregations through search with the following snippet of code:
var searchDescriptor = new SearchDescriptor<Foo>();
searchDescriptor
.Take(50)
.From(0)
.Query(q => q
.Filtered(filtered => filtered
.Query(fq => fq
.QueryString(qs => qs
.Query(query)
)
)
.Filter(filter => filter
.And(fs.ToArray())
)
)
)
.Aggregations(aggs => aggs
.Terms("categories", ct => ct
.Field("categories")
.Size(0)
)
.Terms("activities", at => at
.Field("activities")
.Size(0)
)
.GeoHash("locations", l => l
.Field(f => f.Location)
.GeoHashPrecision(GeoHashPrecision.Precision6)
)
.GeoBounds("bounds", b => b
.Field(f => f.Location)
)
);
When getting the corresponding json for this query and double check it with Sense I get all the aggregations, but the search response from NEST only contains the locations and the bounds aggregations.
Is this an issue or have I misunderstood something?
If GeoBounds is removed it seems to work. However, if GeoBounds aggregation is added, I only get activities and the bounds aggregation from the response.
From @Ekenstein on June 30, 2015 10:22
I am trying to retrieve multiple aggregations through search with the following snippet of code:
When getting the corresponding json for this query and double check it with Sense I get all the aggregations, but the search response from NEST only contains the locations and the bounds aggregations.
Is this an issue or have I misunderstood something?
Copied from original issue: elastic/elasticsearch#11942
The text was updated successfully, but these errors were encountered: