public interface ElasticsearchSearchAggregationFactory extends SearchAggregationFactory
| Modifier and Type | Method and 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.
|
extension, range, termsAggregationFinalStep<com.google.gson.JsonObject> fromJson(com.google.gson.JsonObject jsonObject)
The created aggregation will return the result as a JsonObject.
jsonObject - A JsonObject representing an Elasticsearch aggregation.
The JSON object must be a syntactically correct Elasticsearch aggregation.
See the Elasticsearch documentation.AggregationFinalStep<com.google.gson.JsonObject> fromJson(String jsonString)
The created aggregation will return the result as a JsonObject.
jsonString - A JSON-formatted string representing an Elasticsearch aggregation.
The JSON object must be a syntactically correct Elasticsearch aggregation.
See the Elasticsearch documentation.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.