Class GeoDistanceAggregator
A multi-bucket range aggregator that works on geo_point fields
Inheritance
GeoDistanceAggregator
Namespace: System.Dynamic.ExpandoObject
Syntax
[GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0))")]
public class GeoDistanceAggregator : AggregatorBase
Properties
The field's ID to execute the aggregation on.
Declaration
[JsonProperty("field", Required = Required.Always)]
[Required]
public string Field { get; set; }
Property Value
The point of origin to calculate the distance from (latitude/longitude).
Declaration
[JsonProperty("location", Required = Required.Always)]
[Required]
public GeoLocation Location { get; set; }
Property Value
A list of distance ranges.
Declaration
[JsonProperty("ranges", Required = Required.Always)]
[Required]
public ICollection<GeoDistance> Ranges { get; set; }
Property Value
Methods
Declaration
public static GeoDistanceAggregator FromJson(string data)
Parameters
Returns