Interface SortDistanceFieldContext
-
@Deprecated public interface SortDistanceFieldContext
Deprecated.See the deprecation note onSortContext.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 Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description SortDistanceFieldAndReferenceContextfromCoordinates(Coordinates coordinates)Deprecated.Sort by the distance to the givenCoordinates.SortLatLongContextfromLatitude(double latitude)Deprecated.Sort by the distance to the given latitude andsubsequently-defined longitude.
-
-
-
Method Detail
-
fromCoordinates
SortDistanceFieldAndReferenceContext fromCoordinates(Coordinates coordinates)
Deprecated.Sort by the distance to the givenCoordinates.- Parameters:
coordinates- The reference coordinates to which the distance will be computed for each document.- Returns:
thisfor method chaining
-
fromLatitude
SortLatLongContext fromLatitude(double latitude)
Deprecated.Sort by the distance to the given latitude andsubsequently-defined longitude.- Parameters:
latitude- The reference latitude, part of the coordinates to which the distance will be computed for each document.- Returns:
thisfor method chaining
-
-