Interface ElasticsearchSearchSortFactory

    • Method Detail

      • fromJson

        SortThenStep fromJson​(String jsonString)
        Order elements according to a JSON sort definition.
        Parameters:
        jsonString - A JSON-formatted string representing an Elasticsearch sort. The JSON object must be a syntactically correct Elasticsearch sort. See the Elasticsearch documentation.
        Returns:
        A SortThenStep allowing the retrieval of the sort or the chaining of other sorts.
      • fromJson

        SortThenStep fromJson​(com.google.gson.JsonObject jsonObject)
        Order elements according to a JSON sort definition.
        Parameters:
        jsonObject - A JsonObject representing an Elasticsearch sort. The JSON object must be a syntactically correct Elasticsearch sort. See the Elasticsearch documentation.
        Returns:
        A SortThenStep allowing the retrieval of the sort or the chaining of other sorts.