Interface ElasticsearchSearchPredicateFactory
-
- All Superinterfaces:
SearchPredicateFactory
public interface ElasticsearchSearchPredicateFactory extends SearchPredicateFactory
A factory for search predicates with some Elasticsearch-specific methods.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PredicateFinalStepfromJson(com.google.gson.JsonObject jsonObject)Create a predicate from JSON.PredicateFinalStepfromJson(String jsonString)Create a predicate from JSON.
-
-
-
Method Detail
-
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- AJsonObjectrepresenting 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.
-
-