Interface ElasticsearchSearchAggregationFactory

    • 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 - A JsonObject 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.