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)));
 }
예제 #2
0
 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);
예제 #4
0
 public GeoDistanceFilterDescriptor Optimize(GeoOptimizeBBox optimize)
 {
     this._GeoOptimizeBBox = Enum.GetName(typeof(GeoOptimizeBBox), optimize);
     return this;
 }
		public GeoDistanceRangeFilterDescriptor Optimize(GeoOptimizeBBox optimize)
		{
			_.OptimizeBoundingBox = optimize;
			return this;
		}
예제 #6
0
 public GeoDistanceFilterDescriptor Optimize(GeoOptimizeBBox optimize)
 {
     ((IGeoDistanceFilter)this).OptimizeBoundingBox = optimize;
     return(this);
 }
		public GeoDistanceFilterDescriptor Optimize(GeoOptimizeBBox optimize)
		{
			((IGeoDistanceFilter)this).OptimizeBoundingBox = optimize;
			return this;
		}