Interface SortDistanceFieldContext


@Deprecated public interface SortDistanceFieldContext
Deprecated.
See the deprecation note on SortContext.
A context from which one must define the reference coordinates to which the distance will be computed when sorting.
Author:
Emmanuel Bernard emmanuel@hibernate.org, Yoann Rodiere
  • Method Details

    • fromCoordinates

      SortDistanceFieldAndReferenceContext fromCoordinates(Coordinates coordinates)
      Deprecated.
      Sort by the distance to the given Coordinates.
      Parameters:
      coordinates - The reference coordinates to which the distance will be computed for each document.
      Returns:
      this for method chaining
    • fromLatitude

      SortLatLongContext fromLatitude(double latitude)
      Deprecated.
      Sort by the distance to the given latitude and subsequently-defined longitude.
      Parameters:
      latitude - The reference latitude, part of the coordinates to which the distance will be computed for each document.
      Returns:
      this for method chaining