protected FilterContainer GeoDistanceFilter <TFilterOnDocument>( Expression <Func <TFilterOnDocument, object> > field, double latitude, double longitude, double distance, GeoUnit unit = GeoUnit.Miles, GeoOptimizeBBox optimize = GeoOptimizeBBox.None) where TFilterOnDocument : class { return(Filter <TFilterOnDocument> .GeoDistance(field, geo => geo .Location(latitude, longitude) .Optimize(optimize) .Distance(distance, unit))); }
public GeoDistanceRangeFilterDescriptor Optimize(GeoOptimizeBBox optimize) { this._GeoOptimizeBBox = Enum.GetName(typeof(GeoOptimizeBBox), optimize); return(this); }
public GeoDistanceRangeQueryDescriptor <T> Optimize(GeoOptimizeBBox optimize) => Assign(a => a.OptimizeBoundingBox = optimize);
public GeoDistanceFilterDescriptor Optimize(GeoOptimizeBBox optimize) { this._GeoOptimizeBBox = Enum.GetName(typeof(GeoOptimizeBBox), optimize); return this; }
public GeoDistanceRangeFilterDescriptor Optimize(GeoOptimizeBBox optimize) { _.OptimizeBoundingBox = optimize; return this; }
public GeoDistanceFilterDescriptor Optimize(GeoOptimizeBBox optimize) { ((IGeoDistanceFilter)this).OptimizeBoundingBox = optimize; return(this); }
public GeoDistanceFilterDescriptor Optimize(GeoOptimizeBBox optimize) { ((IGeoDistanceFilter)this).OptimizeBoundingBox = optimize; return this; }