Package lumis.portal.bigdata.query
Interfaces and classes used for performing a query in
IBigDataRepository
(more specifically in an IBigDataSearcher
).- Since:
- 8.1.0
- Version:
- $Revision$ $Date$
-
Class Summary Class Description AbstractSubAggregationAwareAggregation The abstract implementation of a part of aggregation with sub aggregations.AutoCompleteSuggestionConfig Auto complete suggestion configuration.AvgAggregation Aggregation that returns in a value bucket the average value for a given (numeric) field.CardinalityAggregation Aggregation that returns in a value bucket the unique value count for a given field.DateHistogramAggregation Date histogram aggregation.DateHistogramAggregation.Interval Date histogram interval.DateRangeAggregation Date range aggregation.Distance Represents a distance with an amount and adistance unit
.DocumentLocaleClause Clause to filter documents by their locale.FieldPresenceClause ISearchQueryFilter
that checks whether a given field is present or not, accordingly to the chosen operator.
A field is present if a given document has it and it has a non-null value.
The default operator isFieldPresenceClause.Operator.PRESENT
.FilterAggregation Aggregation used to narrow down the current query document space.GeoDistanceAggregation Aggregation that aggregates the documents based on acenter point
and a collection ofranges
.
This aggregation produces a result of typeIGeoDistanceAggregationResult
.GeoDistanceFilter GeoDistanceSearchQuerySort Sort documents by the distance to a given point.HighlightConfig A search highlight configuration.HistogramAggregation Histogram aggregation.MaxAggregation Aggregation that returns in a value bucket the maximum value for a given (numeric) field.MinAggregation Aggregation that returns in a value bucket the minimum value for a given (numeric) field.NestedObjectAggregation This aggregation should be used mainly when some aggregations must be performed over fields inside anested object field
.
In this case, the aggregations should be added as sub-aggregations of anested object aggregation
.
For example, suppose we have a persondocument type
with the following fields:
name (text) address (nested object)
street (keyword) number (keyword)
And there are 3 documents in this document type:
{"name": "Nara Jones"} {"name": "Albert Russef", "address": [{"street": "Av Rio Branco", "number": "23"}, {"street": "Av Francisco Bicalho"}]} {"name": "Josef Camus", "address": [{"street": "Av Presidente Vargas"}]}
If a filter aggregation must be created with a filter to restrict the documents to those with the fieldaddress.number
, and this filter aggregation has a terms aggregation as sub aggregation, the terms aggregation result will have the bucketsAv Rio Branco
andAv Francisco Bicalho
, because, since there's no nested aggregation, both of them will be considered in filter aggregation.NestedObjectFilter Filter used to apply other filter in a single nested object.NotFilter A filter that negates the result of another filter.Range<T extends java.lang.Comparable<T>> Represents a range of values by having afrom
and ato
value.ReverseNestedAggregation Reverse Nested Aggregation.SearchFieldClause A search query clause used by asearcher
to search content.SearchFilterGroup Allows the creation of composite filters by grouping them together and using a logical operator to join them.SearchQuery Represents search criteria used to find matching information by asearcher
.SearchQuerySort Search sort definition.SumAggregation Aggregation that returns in a value bucket the sum value for a given (numeric) field.TermsAggregation Aggregation that produces anITermsAggregationResult
.ValueCountAggregation Aggregation that returns in a value bucket the value count for a given field. -
Enum Summary Enum Description DateHistogramAggregation.Interval.Type Interval type.DistanceUnit Distance units.FieldPresenceClause.Operator The available operators for this clause.SearchFieldClause.Operator Supported operators.SearchFilterGroup.Operator Supported grouping operators.SearchQuerySort.Order The sort orders.