Yegoroff/PlainElastic.Net

How do I access aggregations after serializing the result?

Opened this issue · 4 comments

I am using the plainelastic version 1.1.53.0. I am unable to use the geo_distance and date_range aggregates of elasticsearch. I am working around by using custom options instead. Though I would prefer to use their power instead of custom option.

Also I am unable to access the aggregation field after deserializing the result. I only get the option to use facets here and not aggregations.

var serializer = new JsonNetSerializer();
var facets=serializer.ToSearchResult<>(result).facets;

I have the same issue.

I have the same issue with facets vs aggregations

Same issue. Anybody have a solution for accessing Aggregations

We started to implement aggregations response in our branch here: https://github.com/VirtoCommerce/PlainElastic.Net, the package in nuget is VirtoCommerce.PlainElastic.Net (beta). Will PR when ready.