Interface ElasticsearchSearchPredicateFactory<SR>
- Type Parameters:
SR
- Scope root type.
- All Superinterfaces:
ExtendedSearchPredicateFactory<SR,
,ElasticsearchSearchPredicateFactory<SR>> SearchPredicateFactory
,TypedSearchPredicateFactory<SR>
public interface ElasticsearchSearchPredicateFactory<SR>
extends ExtendedSearchPredicateFactory<SR,ElasticsearchSearchPredicateFactory<SR>>
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, withScopeRoot
-
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.
-