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 org.springframework.data.elasticsearch.core.query.Order
Order.Mode
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GeoDistanceOrder.DistanceType
static final Boolean
static final String
Fields inherited from class org.springframework.data.elasticsearch.core.query.Order
DEFAULT_MODE, DEFAULT_NULL_HANDLING, mode, unmappedType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMode()
getUnit()
toString()
with
(Sort.Direction direction) with
(Sort.NullHandling nullHandling) with
(GeoDistanceOrder.DistanceType distanceType) with
(Order.Mode mode) withIgnoreUnmapped
(Boolean ignoreUnmapped) withProperty
(String property) Methods inherited from class org.springframework.data.elasticsearch.core.query.Order
getUnmappedType, withUnmappedType
Methods inherited from class org.springframework.data.domain.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:
withProperty
in classOrder
-
with
-
with
-
with
-
with
-
withUnit
-
withIgnoreUnmapped
-
toString
- Overrides:
toString
in classSort.Order
-