I have a query like this -
var result = clientConnection.Search<dynamic>(s => s .Index(indexname) .Type(typename) .Aggregations(a => a .DateRange(fieldvalue, d => d .Field(fieldname) .Ranges( r => r.To("2016-03-30T19:40:50+00:00"), r => r.From("2016-03-15T19:40:50+00:00") ) ) ) ); var agg = result.Aggs.DateRange("L2");
But this gives me 2 nest buckets like this
This gives me only the document count. But I need to see the values inside the document. How do I retrieve the values in the document ? I used Nest.BucketItem but I am not able to retrieve it.
Also I can see that there are 2 buckets. Why not 1? Please suggest