Class AggregationBuilders
java.lang.Object
org.elasticsearch.search.aggregations.AggregationBuilders
Utility class to create aggregations.
-
Method Summary
Modifier and TypeMethodDescriptionadjacencyMatrix(String name, String separator, Map<String,QueryBuilder> filters)
Create a newAdjacencyMatrix
aggregation with the given name and separatoradjacencyMatrix(String name, Map<String,QueryBuilder> filters)
Create a newAdjacencyMatrix
aggregation with the given name.static AvgAggregationBuilder
Create a newAvg
aggregation with the given name.cardinality(String name)
Create a newCardinality
aggregation with the given name.static CompositeAggregationBuilder
composite(String name, List<CompositeValuesSourceBuilder<?>> sources)
Create a newCompositeAggregationBuilder
aggregation with the given name.static ValueCountAggregationBuilder
Create a newValueCount
aggregation with the given name.dateHistogram(String name)
Create a newDateHistogramAggregationBuilder
aggregation with the given name.static DateRangeAggregationBuilder
Create a newDateRangeAggregationBuilder
aggregation with the given name.diversifiedSampler(String name)
Create a newSampler
aggregation with the given name.extendedStats(String name)
Create a newExtendedStats
aggregation with the given name.static FilterAggregationBuilder
filter(String name, QueryBuilder filter)
Create a newFilter
aggregation with the given name.static FiltersAggregationBuilder
filters(String name, QueryBuilder... filters)
Create a newFilters
aggregation with the given name.static FiltersAggregationBuilder
filters(String name, FiltersAggregator.KeyedFilter... filters)
Create a newFilters
aggregation with the given name.static GeoBoundsAggregationBuilder
Create a newGeoBounds
aggregation with the given name.geoCentroid(String name)
Create a newGeoCentroid
aggregation with the given name.geoDistance(String name, GeoPoint origin)
Create a newGeoDistance
aggregation with the given name.geohashGrid(String name)
Create a newInternalGeoHashGrid
aggregation with the given name.geotileGrid(String name)
Create a newInternalGeoTileGrid
aggregation with the given name.static GlobalAggregationBuilder
Create a newGlobal
aggregation with the given name.static HistogramAggregationBuilder
Create a newHistogram
aggregation with the given name.static IpRangeAggregationBuilder
Create a newIpRangeAggregationBuilder
aggregation with the given name.static MaxAggregationBuilder
Create a newMax
aggregation with the given name.Create a newMedianAbsoluteDeviation
aggregation with the given namestatic MinAggregationBuilder
Create a newMin
aggregation with the given name.static MissingAggregationBuilder
Create a newMissing
aggregation with the given name.static NestedAggregationBuilder
Create a newNested
aggregation with the given name.percentileRanks(String name, double[] values)
Create a newPercentileRanks
aggregation with the given name.percentiles(String name)
Create a newPercentiles
aggregation with the given name.static RangeAggregationBuilder
Create a newRange
aggregation with the given name.reverseNested(String name)
Create a newReverseNested
aggregation with the given name.static SamplerAggregationBuilder
Create a newSampler
aggregation with the given name.scriptedMetric(String name)
Create a newScriptedMetric
aggregation with the given name.significantTerms(String name)
Create a newSignificantTerms
aggregation with the given name.significantText(String name, String fieldName)
Create a newSignificantTextAggregationBuilder
aggregation with the given name and text field namestatic StatsAggregationBuilder
Create a newStats
aggregation with the given name.static SumAggregationBuilder
Create a newSum
aggregation with the given name.static TermsAggregationBuilder
Create a newTerms
aggregation with the given name.static TopHitsAggregationBuilder
Create a newTopHits
aggregation with the given name.weightedAvg(String name)
Create a newAvg
aggregation with the given name.
-
Method Details
-
count
Create a newValueCount
aggregation with the given name. -
avg
Create a newAvg
aggregation with the given name. -
weightedAvg
Create a newAvg
aggregation with the given name. -
max
Create a newMax
aggregation with the given name. -
min
Create a newMin
aggregation with the given name. -
sum
Create a newSum
aggregation with the given name. -
stats
Create a newStats
aggregation with the given name. -
extendedStats
Create a newExtendedStats
aggregation with the given name. -
filter
Create a newFilter
aggregation with the given name. -
filters
public static FiltersAggregationBuilder filters(String name, FiltersAggregator.KeyedFilter... filters)Create a newFilters
aggregation with the given name. -
filters
Create a newFilters
aggregation with the given name. -
adjacencyMatrix
public static AdjacencyMatrixAggregationBuilder adjacencyMatrix(String name, Map<String,QueryBuilder> filters)Create a newAdjacencyMatrix
aggregation with the given name. -
adjacencyMatrix
public static AdjacencyMatrixAggregationBuilder adjacencyMatrix(String name, String separator, Map<String,QueryBuilder> filters)Create a newAdjacencyMatrix
aggregation with the given name and separator -
sampler
Create a newSampler
aggregation with the given name. -
diversifiedSampler
Create a newSampler
aggregation with the given name. -
global
Create a newGlobal
aggregation with the given name. -
missing
Create a newMissing
aggregation with the given name. -
nested
Create a newNested
aggregation with the given name. -
reverseNested
Create a newReverseNested
aggregation with the given name. -
geoDistance
Create a newGeoDistance
aggregation with the given name. -
histogram
Create a newHistogram
aggregation with the given name. -
geohashGrid
Create a newInternalGeoHashGrid
aggregation with the given name. -
geotileGrid
Create a newInternalGeoTileGrid
aggregation with the given name. -
significantTerms
Create a newSignificantTerms
aggregation with the given name. -
significantText
Create a newSignificantTextAggregationBuilder
aggregation with the given name and text field name -
dateHistogram
Create a newDateHistogramAggregationBuilder
aggregation with the given name. -
range
Create a newRange
aggregation with the given name. -
dateRange
Create a newDateRangeAggregationBuilder
aggregation with the given name. -
ipRange
Create a newIpRangeAggregationBuilder
aggregation with the given name. -
terms
Create a newTerms
aggregation with the given name. -
percentiles
Create a newPercentiles
aggregation with the given name. -
percentileRanks
Create a newPercentileRanks
aggregation with the given name. -
medianAbsoluteDeviation
Create a newMedianAbsoluteDeviation
aggregation with the given name -
cardinality
Create a newCardinality
aggregation with the given name. -
topHits
Create a newTopHits
aggregation with the given name. -
geoBounds
Create a newGeoBounds
aggregation with the given name. -
geoCentroid
Create a newGeoCentroid
aggregation with the given name. -
scriptedMetric
Create a newScriptedMetric
aggregation with the given name. -
composite
public static CompositeAggregationBuilder composite(String name, List<CompositeValuesSourceBuilder<?>> sources)Create a newCompositeAggregationBuilder
aggregation with the given name.
-