Interface IGeoDistanceSort
Allows you to sort based on a proximity to one or more GeoLocation
Assembly: OpenSearch.Client.dll
Syntax
public interface IGeoDistanceSort : ISort
Properties
|
Edit this page
View Source
DistanceType
How to compute the distance. Can either be arc (default), or plane (faster, but
inaccurate on long distances and close to the poles).
Declaration
[DataMember(Name = "distance_type")]
GeoDistanceType? DistanceType { get; set; }
Property Value
|
Edit this page
View Source
Field
Declaration
Field Field { get; set; }
Property Value
|
Edit this page
View Source
IgnoreUnmapped
Indicates if the unmapped field should be treated as a missing value. Setting it to true
is equivalent to specifying
an unmapped_type
in the field sort. The default is false
(unmapped field are causing the search to fail)
Declaration
[DataMember(Name = "ignore_unmapped")]
bool? IgnoreUnmapped { get; set; }
Property Value
|
Edit this page
View Source
Points
Declaration
IEnumerable<GeoLocation> Points { get; set; }
Property Value
|
Edit this page
View Source
Unit
The unit to use when computing sort values. The default is m (meters)
Declaration
[DataMember(Name = "unit")]
DistanceUnit? Unit { get; set; }
Property Value
Extension Methods