示例#1
0
 public GeoShapePropertyDescriptor <T> Precision(double precision, GeoPrecision unit) =>
 Assign(a => a.Precision = new GeoDistance(precision, unit));
 public GeoDistanceQueryDescriptor <T> Distance(double distance, GeoPrecision unit) => Assign(a => a.Distance = new GeoDistance(distance, unit));
 public SortGeoDistanceDescriptor <T> Unit(GeoPrecision unit) => Assign(a => a.GeoUnit = unit);
 public GeoDistance(double distance, GeoPrecision unit)
 {
     this.Precision = distance;
     this.Unit      = unit;
 }
 public GeoDistanceRangeQueryDescriptor <T> LessThan(double distance, GeoPrecision unit) =>
 Assign(a => a.LessThan = new GeoDistance(distance, unit));
 public GeoDistanceRangeQueryDescriptor <T> GreaterThanOrEqualTo(double distance, GeoPrecision unit) =>
 Assign(a => a.GreaterThanOrEqualTo = new GeoDistance(distance, unit));
 public GeoDistanceAggregationDescriptor <T> Unit(GeoPrecision unit) => Assign(a => a.Unit = unit);