Interface ElasticsearchSearchSortFactory

All Superinterfaces:
org.hibernate.search.engine.search.sort.dsl.ExtendedSearchSortFactory<ElasticsearchSearchSortFactory,ElasticsearchSearchPredicateFactory>, org.hibernate.search.engine.search.sort.dsl.SearchSortFactory

public interface ElasticsearchSearchSortFactory extends org.hibernate.search.engine.search.sort.dsl.ExtendedSearchSortFactory<ElasticsearchSearchSortFactory,ElasticsearchSearchPredicateFactory>
A factory for search sorts with some Elasticsearch-specific methods.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.hibernate.search.engine.search.sort.dsl.SortThenStep
    fromJson(com.google.gson.JsonObject jsonObject)
    Order elements according to a JSON sort definition.
    org.hibernate.search.engine.search.sort.dsl.SortThenStep
    fromJson(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, withRoot

    Methods inherited from interface org.hibernate.search.engine.search.sort.dsl.SearchSortFactory

    composite, composite, extension, extension, indexOrder, score, toAbsolutePath, withParameters
  • Method Details

    • fromJson

      org.hibernate.search.engine.search.sort.dsl.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 SortThenStep allowing the retrieval of the sort or the chaining of other sorts.
    • fromJson

      org.hibernate.search.engine.search.sort.dsl.SortThenStep fromJson(com.google.gson.JsonObject jsonObject)
      Order elements according to a JSON sort definition.
      Parameters:
      jsonObject - A JsonObject representing an Elasticsearch sort. The JSON object must be a syntactically correct Elasticsearch sort. See the Elasticsearch documentation.
      Returns:
      A SortThenStep allowing the retrieval of the sort or the chaining of other sorts.