diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/NumericRangeFilterBuilder.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/NumericRangeFilterBuilder.java index bdb421e291e..3683fa2e083 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/NumericRangeFilterBuilder.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/NumericRangeFilterBuilder.java @@ -274,7 +274,7 @@ public class NumericRangeFilterBuilder extends BaseFilterBuilder { /** * The to part of the filter query. Null indicates unbounded. */ - public NumericRangeFilterBuilder lte(String to) { + public NumericRangeFilterBuilder lte(Object to) { this.to = to; this.includeUpper = true; return this; diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/RangeFilterBuilder.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/RangeFilterBuilder.java index 25dcd319363..9f34a7e0b23 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/RangeFilterBuilder.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/RangeFilterBuilder.java @@ -269,15 +269,6 @@ public class RangeFilterBuilder extends BaseFilterBuilder { return this; } - /** - * The to part of the filter query. Null indicates unbounded. - */ - public RangeFilterBuilder lte(String to) { - this.to = to; - this.includeUpper = true; - return this; - } - /** * The to part of the filter query. Null indicates unbounded. */