Interface ElasticsearchSearchAggregationFactory
-
- All Superinterfaces:
ExtendedSearchAggregationFactory<ElasticsearchSearchAggregationFactory,ElasticsearchSearchPredicateFactory>
,SearchAggregationFactory
public interface ElasticsearchSearchAggregationFactory extends ExtendedSearchAggregationFactory<ElasticsearchSearchAggregationFactory,ElasticsearchSearchPredicateFactory>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AggregationFinalStep<com.google.gson.JsonObject>
fromJson(com.google.gson.JsonObject jsonObject)
Create an aggregation from JSON.AggregationFinalStep<com.google.gson.JsonObject>
fromJson(String jsonString)
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 Detail
-
fromJson
AggregationFinalStep<com.google.gson.JsonObject> fromJson(com.google.gson.JsonObject jsonObject)
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
AggregationFinalStep<com.google.gson.JsonObject> fromJson(String jsonString)
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.
-
-