@StableMinor(version="12.2", sinceVersion="11.2") public class NestedObjectAggregation extends AbstractSubAggregationAwareAggregation
nested object field
.nested object aggregation
.document type
with the following fields:address.number
,
and this filter aggregation has a terms aggregation as sub aggregation, the terms aggregation result
will have the buckets Av Rio Branco
and Av Francisco Bicalho
, because, since there's no nested aggregation, both of them will be
considered in filter aggregation. This may or may not be desired.Av Rio Branco
. This result is because with the nested object aggregation, both filter and terms aggregation
will be applied in the same nested objects.INestedObjectAggregationResult
.Constructor and Description |
---|
NestedObjectAggregation(String id,
CompositeDocumentTypeField path)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getId()
Returns the aggregation identifier.
|
CompositeDocumentTypeField |
getPath()
Returns the path of nested field.
|
addSubAggregation, addSubAggregations, addSubAggregations, getSubAggregations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId
protected final String id
public NestedObjectAggregation(String id, CompositeDocumentTypeField path)
id
- the aggregation identifier.path
- the path of nested field.public CompositeDocumentTypeField getPath()
public String getId()
IAggregation
getId
in interface IAggregation
LumisXP 12.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.