IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Missing Aggregation Usage
editMissing Aggregation Usage
editFluent DSL example
edita => a .Missing("projects_without_a_description", m => m .Field(p => p.Description.Suffix("keyword")) )
Object Initializer syntax example
editnew MissingAggregation("projects_without_a_description") { Field = Field<Project>(p => p.Description.Suffix("keyword")) }
Example json output.
{ "projects_without_a_description": { "missing": { "field": "description.keyword" } } }
Handling Responses
editresponse.ShouldBeValid(); var projectsWithoutDesc = response.Aggregations.Missing("projects_without_a_description"); projectsWithoutDesc.Should().NotBeNull();