Interface ElasticsearchSearchPredicateFactory
- All Superinterfaces:
org.hibernate.search.engine.search.predicate.dsl.ExtendedSearchPredicateFactory<ElasticsearchSearchPredicateFactory>,org.hibernate.search.engine.search.predicate.dsl.SearchPredicateFactory
public interface ElasticsearchSearchPredicateFactory
extends org.hibernate.search.engine.search.predicate.dsl.ExtendedSearchPredicateFactory<ElasticsearchSearchPredicateFactory>
A factory for search predicates with some Elasticsearch-specific methods.
-
Method Summary
Modifier and TypeMethodDescriptionorg.hibernate.search.engine.search.predicate.dsl.PredicateFinalStepfromJson(com.google.gson.JsonObject jsonObject) Create a predicate from JSON.org.hibernate.search.engine.search.predicate.dsl.PredicateFinalStepCreate a predicate from JSON.Methods inherited from interface org.hibernate.search.engine.search.predicate.dsl.ExtendedSearchPredicateFactory
withRootMethods inherited from interface org.hibernate.search.engine.search.predicate.dsl.SearchPredicateFactory
and, and, and, bool, bool, exists, extension, extension, id, knn, match, matchAll, matchNone, named, nested, nested, not, not, or, or, or, phrase, prefix, queryString, range, regexp, simpleQueryString, spatial, terms, toAbsolutePath, wildcard, withParameters
-
Method Details
-
fromJson
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
org.hibernate.search.engine.search.predicate.dsl.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.
-