Skip to content

Commit 8bbf78b

Browse files
committed
removed some unneseccary assignments to this from filterdescriptor
1 parent dc4081c commit 8bbf78b

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/Nest/DSL/FilterDescriptor.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,6 @@ public BaseFilter GeoDistanceRange(string field, Action<GeoDistanceRangeFilterDe
438438
dd.Add("optimize_bbox", filter._GeoOptimizeBBox);
439439

440440
d.ForEachWithIndex((kv, i) => dd.Add(kv.Key, kv.Value));
441-
this.GeoDistanceRangeFilter = dd;
442441
b.GeoDistanceRangeFilter = dd;
443442
});
444443

@@ -475,7 +474,6 @@ public BaseFilter GeoPolygon(string fieldName, params string[] points)
475474
var filter = new GeoPolygonFilter { Points = points };
476475
return this.SetDictionary("geo_polygon", fieldName, filter, (d, b) =>
477476
{
478-
this.GeoPolygonFilter = d;
479477
b.GeoPolygonFilter = d;
480478
});
481479

@@ -586,7 +584,6 @@ public BaseFilter NumericRange(Action<NumericRangeFilterDescriptor<T>> numericRa
586584

587585
return this.SetDictionary("numeric_range", filter._Field, filter, (d, b) =>
588586
{
589-
this.NumericRangeFilter = d;
590587
b.NumericRangeFilter = d;
591588
});
592589

@@ -607,7 +604,6 @@ public BaseFilter Range(Action<RangeFilterDescriptor<T>> rangeSelector)
607604

608605
return this.SetDictionary("range", filter._Field, filter, (d, b) =>
609606
{
610-
this.RangeFilter = d;
611607
b.RangeFilter = d;
612608
});
613609

@@ -645,7 +641,6 @@ public BaseFilter Prefix(string field, string prefix)
645641
var descriptor = new FilterDescriptor<T>();
646642
return this.SetDictionary("prefix", field, prefix, (d, b) =>
647643
{
648-
this.PrefixFilter = d;
649644
b.PrefixFilter = d;
650645
});
651646

@@ -746,7 +741,6 @@ public BaseFilter Or(params Func<FilterDescriptor<T>, BaseFilter>[] filters)
746741
}
747742
return this.SetDictionary("or", "filters", descriptors, (d, b) =>
748743
{
749-
this.OrFilter = d;
750744
b.OrFilter = d;
751745
});
752746
}
@@ -766,7 +760,6 @@ public BaseFilter Or(params BaseFilter[] filters)
766760
}
767761
return this.SetDictionary("or", "filters", descriptors, (d, b) =>
768762
{
769-
this.OrFilter = d;
770763
b.OrFilter = d;
771764
});
772765
}
@@ -786,7 +779,6 @@ public BaseFilter Not(Func<FilterDescriptor<T>, BaseFilter> selector)
786779

787780
return this.SetDictionary("not", "filter", f, (d, b) =>
788781
{
789-
this.NotFilter = d;
790782
b.NotFilter = d;
791783
});
792784

@@ -822,7 +814,6 @@ public BaseFilter Query(Func<QueryDescriptor<T>, BaseQuery> querySelector)
822814

823815
return this.SetDictionary("query", "query", bq, (d, b) =>
824816
{
825-
this.QueryFilter = d;
826817
b.QueryFilter = d;
827818
});
828819
}
@@ -865,7 +856,6 @@ public BaseFilter Regexp(Action<RegexpFilterDescriptor<T>> selector)
865856
//this.SetCacheAndName(filter);
866857
return this.SetDictionary("regexp", filter._Field, filter, (d, b) =>
867858
{
868-
this.RegexpFilter = d;
869859
b.RegexpFilter = d;
870860
});
871861
}

0 commit comments

Comments
 (0)