Class GeoDistanceOrder
java.lang.Object
org.springframework.data.domain.Sort.Order
org.springframework.data.elasticsearch.core.query.Order
org.springframework.data.elasticsearch.core.query.GeoDistanceOrder
- All Implemented Interfaces:
Serializable
Sort.Order derived class to be able to define a _geo_distance order for a
search.- Since:
- 4.0
- Author:
- Peter-Josef Meisch
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Order
Order.Mode, Order.Nested -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GeoDistanceOrder.DistanceTypestatic final Booleanstatic final StringFields inherited from class Order
DEFAULT_NULL_HANDLING, missing, mode, nested, unmappedType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMode()getUnit()toString()with(Sort.Direction direction) with(Sort.NullHandling nullHandling) with(GeoDistanceOrder.DistanceType distanceType) with(@Nullable Order.Mode mode) withIgnoreUnmapped(Boolean ignoreUnmapped) withProperty(String property) Methods inherited from class Order
getMissing, getNested, getUnmappedType, withMissing, withNested, withUnmappedTypeMethods inherited from class Sort.Order
asc, by, desc, equals, getDirection, getNullHandling, getProperty, hashCode, ignoreCase, isAscending, isDescending, isIgnoreCase, nullsFirst, nullsLast, nullsNative, reverse, withProperties
-
Field Details
-
DEFAULT_DISTANCE_TYPE
-
DEFAULT_UNIT
- See Also:
-
DEFAULT_IGNORE_UNMAPPED
-
-
Constructor Details
-
GeoDistanceOrder
-
-
Method Details
-
getGeoPoint
-
getDistanceType
-
getMode
-
getUnit
-
getIgnoreUnmapped
-
withProperty
- Overrides:
withPropertyin classOrder
-
with
-
with
-
with
-
with
-
withUnit
-
withIgnoreUnmapped
-
toString
- Overrides:
toStringin classSort.Order
-