From 998f5f418896c9c9cb80b3db1d83cda1329d2fd1 Mon Sep 17 00:00:00 2001 From: kimchy Date: Sat, 15 Jan 2011 02:15:29 +0200 Subject: [PATCH] add lt(Object) to range filter builder --- .../index/query/xcontent/RangeFilterBuilder.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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 6dae3f50bd6..1495296915a 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 @@ -313,6 +313,15 @@ public class RangeFilterBuilder extends BaseFilterBuilder { return this; } + /** + * The to part of the filter query. Null indicates unbounded. + */ + public RangeFilterBuilder lte(Object to) { + this.to = to; + this.includeUpper = true; + return this; + } + /** * Should the lower bound be included or not. Defaults to true. */