Interface ElasticsearchSearchSortFactory<SR>
- Type Parameters:
SR- Scope root type.
- All Superinterfaces:
ExtendedSearchSortFactory<SR,,ElasticsearchSearchSortFactory<SR>, ElasticsearchSearchPredicateFactory<SR>> SearchSortFactory,TypedSearchSortFactory<SR>
public interface ElasticsearchSearchSortFactory<SR>
extends ExtendedSearchSortFactory<SR,ElasticsearchSearchSortFactory<SR>,ElasticsearchSearchPredicateFactory<SR>>
A factory for search sorts with some Elasticsearch-specific methods.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.google.gson.JsonObject jsonObject) Order elements according to a JSON sort definition.Order elements according to a JSON sort definition.Methods inherited from interface org.hibernate.search.engine.search.sort.dsl.ExtendedSearchSortFactory
distance, distance, distance, distance, field, withRootMethods inherited from interface org.hibernate.search.engine.search.sort.dsl.SearchSortFactory
extension, toAbsolutePathMethods inherited from interface org.hibernate.search.engine.search.sort.dsl.TypedSearchSortFactory
composite, composite, extension, field, indexOrder, score, withParameters
-
Method Details
-
fromJson
Order elements according to a JSON sort definition.- Parameters:
jsonString- A JSON-formatted string representing an Elasticsearch sort. The JSON object must be a syntactically correct Elasticsearch sort. See the Elasticsearch documentation.- Returns:
- A
SortThenStepallowing the retrieval of the sort or the chaining of other sorts.
-
fromJson
Order elements according to a JSON sort definition.- Parameters:
jsonObject- AJsonObjectrepresenting an Elasticsearch sort. The JSON object must be a syntactically correct Elasticsearch sort. See the Elasticsearch documentation.- Returns:
- A
SortThenStepallowing the retrieval of the sort or the chaining of other sorts.
-