@StableMinor(version="12.0", sinceVersion="9.0") public class GeoDistanceSearchQuerySort extends SearchQuerySort
The given field
will be used to calculate the geo distance to the given point
.
Thus, the given field must be of the data type
DocumentTypeField.DataType.GEO_POINT
.
If the given field is a list
, the closest point to the given point will be considered.
SearchQuerySort.Order
Constructor and Description |
---|
GeoDistanceSearchQuerySort(DocumentTypeField field,
GeoPoint pin,
SearchQuerySort.Order order)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
DocumentTypeField |
getField()
Returns the field.
|
GeoPoint |
getPin()
Returns the pin.
|
getFieldId, getOrder
public GeoDistanceSearchQuerySort(DocumentTypeField field, GeoPoint pin, SearchQuerySort.Order order)
field
- the field to be used to calculate the geo distance to the given point.pin
- the point.order
- the order.public GeoPoint getPin()
public DocumentTypeField getField()
LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.