Interface ElasticsearchSearchPredicateFactory

All Superinterfaces:
ExtendedSearchPredicateFactory<ElasticsearchSearchPredicateFactory>, SearchPredicateFactory

public interface ElasticsearchSearchPredicateFactory extends ExtendedSearchPredicateFactory<ElasticsearchSearchPredicateFactory>
A factory for search predicates with some Elasticsearch-specific methods.
  • Method Details

    • fromJson

      PredicateFinalStep fromJson(String jsonString)
      Create a predicate from JSON.
      Parameters:
      jsonString - A JSON-formatted string representing an Elasticsearch query. The JSON object must be a syntactically correct Elasticsearch query. See the Elasticsearch documentation.
      Returns:
      The final step of the predicate DSL.
    • fromJson

      PredicateFinalStep fromJson(com.google.gson.JsonObject jsonObject)
      Create a predicate from JSON.
      Parameters:
      jsonObject - A JsonObject representing an Elasticsearch query. The JSON object must be a syntactically correct Elasticsearch query. See the Elasticsearch documentation.
      Returns:
      The final step of the predicate DSL.