Interface ElasticsearchSearchPredicateFactory
- All Superinterfaces:
ExtendedSearchPredicateFactory<ElasticsearchSearchPredicateFactory>
,SearchPredicateFactory
public interface ElasticsearchSearchPredicateFactory
extends ExtendedSearchPredicateFactory<ElasticsearchSearchPredicateFactory>
A factory for search predicates with some Elasticsearch-specific methods.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.google.gson.JsonObject jsonObject) Create a predicate from JSON.Create a predicate from JSON.Methods inherited from interface org.hibernate.search.engine.search.predicate.dsl.ExtendedSearchPredicateFactory
withRoot
Methods 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
Create a predicate from JSON.- Parameters:
jsonObject
- AJsonObject
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.
-