Interface ElasticsearchSearchAggregationFactory<SR>
- All Superinterfaces:
ExtendedSearchAggregationFactory<SR,
,ElasticsearchSearchAggregationFactory<SR>, ElasticsearchSearchPredicateFactory<SR>> SearchAggregationFactory
,TypedSearchAggregationFactory<SR>
public interface ElasticsearchSearchAggregationFactory<SR>
extends ExtendedSearchAggregationFactory<SR,ElasticsearchSearchAggregationFactory<SR>,ElasticsearchSearchPredicateFactory<SR>>
-
Method Summary
Modifier and TypeMethodDescriptionAggregationFinalStep
<com.google.gson.JsonObject> fromJson
(com.google.gson.JsonObject jsonObject) Create an aggregation from JSON.AggregationFinalStep
<com.google.gson.JsonObject> Create an aggregation from JSON.Methods inherited from interface org.hibernate.search.engine.search.aggregation.dsl.ExtendedSearchAggregationFactory
avg, count, countDistinct, max, min, range, sum, terms, withRoot
Methods inherited from interface org.hibernate.search.engine.search.aggregation.dsl.SearchAggregationFactory
extension, toAbsolutePath, withParameters
-
Method Details
-
fromJson
Create an aggregation from JSON.The created aggregation will return the result as a
JsonObject
.- Parameters:
jsonObject
- AJsonObject
representing an Elasticsearch aggregation. The JSON object must be a syntactically correct Elasticsearch aggregation. See the Elasticsearch documentation.- Returns:
- The final step of the aggregation DSL.
-
fromJson
Create an aggregation from JSON.The created aggregation will return the result as a
JsonObject
.- Parameters:
jsonString
- A JSON-formatted string representing an Elasticsearch aggregation. The JSON object must be a syntactically correct Elasticsearch aggregation. See the Elasticsearch documentation.- Returns:
- The final step of the aggregation DSL.
-