Interface ElasticsearchSearchAggregationFactory
- All Superinterfaces:
ExtendedSearchAggregationFactory<ElasticsearchSearchAggregationFactory,
,ElasticsearchSearchPredicateFactory> SearchAggregationFactory
public interface ElasticsearchSearchAggregationFactory
extends ExtendedSearchAggregationFactory<ElasticsearchSearchAggregationFactory,ElasticsearchSearchPredicateFactory>
-
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
range, terms, withRoot
Methods inherited from interface org.hibernate.search.engine.search.aggregation.dsl.SearchAggregationFactory
extension, toAbsolutePath
-
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.
-