From a49af6072b3410b81dc85ac1fa833e5cc49a628e Mon Sep 17 00:00:00 2001 From: kimchy Date: Thu, 26 Aug 2010 16:39:39 +0300 Subject: [PATCH] add objects option to range filter builder --- .../index/query/xcontent/RangeFilterBuilder.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/RangeFilterBuilder.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/RangeFilterBuilder.java index 1defd3afc6a..7cef6c2791f 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/RangeFilterBuilder.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/RangeFilterBuilder.java @@ -52,7 +52,7 @@ public class RangeFilterBuilder extends BaseFilterBuilder { /** * The from part of the filter query. Null indicates unbounded. */ - public RangeFilterBuilder from(String from) { + public RangeFilterBuilder from(Object from) { this.from = from; return this; } @@ -92,7 +92,7 @@ public class RangeFilterBuilder extends BaseFilterBuilder { /** * The from part of the filter query. Null indicates unbounded. */ - public RangeFilterBuilder gt(String from) { + public RangeFilterBuilder gt(Object from) { this.from = from; this.includeLower = false; return this; @@ -137,7 +137,7 @@ public class RangeFilterBuilder extends BaseFilterBuilder { /** * The from part of the filter query. Null indicates unbounded. */ - public RangeFilterBuilder gte(String from) { + public RangeFilterBuilder gte(Object from) { this.from = from; this.includeLower = true; return this; @@ -182,7 +182,7 @@ public class RangeFilterBuilder extends BaseFilterBuilder { /** * The to part of the filter query. Null indicates unbounded. */ - public RangeFilterBuilder to(String to) { + public RangeFilterBuilder to(Object to) { this.to = to; return this; } @@ -222,7 +222,7 @@ public class RangeFilterBuilder extends BaseFilterBuilder { /** * The to part of the filter query. Null indicates unbounded. */ - public RangeFilterBuilder lt(String to) { + public RangeFilterBuilder lt(Object to) { this.to = to; this.includeUpper = false; return this;