Interface ElasticsearchSearchSortFactory
-
- All Superinterfaces:
ExtendedSearchSortFactory<ElasticsearchSearchPredicateFactory>,SearchSortFactory
public interface ElasticsearchSearchSortFactory extends ExtendedSearchSortFactory<ElasticsearchSearchPredicateFactory>
A factory for search sorts with some Elasticsearch-specific methods.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SortThenStepfromJson(com.google.gson.JsonObject jsonObject)Order elements according to a JSON sort definition.SortThenStepfromJson(String jsonString)Order elements according to a JSON sort definition.-
Methods inherited from interface org.hibernate.search.engine.search.sort.dsl.ExtendedSearchSortFactory
distance, distance, field
-
Methods inherited from interface org.hibernate.search.engine.search.sort.dsl.SearchSortFactory
composite, composite, extension, extension, indexOrder, score
-
-
-
-
Method Detail
-
fromJson
SortThenStep fromJson(String jsonString)
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
SortThenStep fromJson(com.google.gson.JsonObject jsonObject)
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.
-
-