A newer version is available. For the latest information, see the
current release documentation.
Min Aggregation Usage
editMin Aggregation Usage
editFluent DSL example
edita => a .Min("min_last_activity", m => m .Field(p => p.LastActivity) .Format("yyyy") )
Object Initializer syntax example
editnew MinAggregation("min_last_activity", Field<Project>(p => p.LastActivity)) { Format = "yyyy" }
Example json output.
{ "min_last_activity": { "min": { "field": "lastActivity", "format": "yyyy" } } }
Handling Responses
editresponse.ShouldBeValid(); var min = response.Aggregations.Min("min_last_activity"); min.Should().NotBeNull(); min.Value.Should().BeGreaterThan(0); min.ValueAsString.Should().NotBeNullOrEmpty();