Java API Multiple range queries

Is it possible to add multiple range queries using the Java API? I can get
to work with one range query using:

searchRequestBuilder.setFilter(rangeFilterBuilder);

Is there a way to add multiple range queries to the SearchRequestBuilder
object?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

You need to use a bool filter to combine each range filter

clint

On 19 May 2013 14:43, es newbie dan.tuffery@gmail.com wrote:

Is it possible to add multiple range queries using the Java API? I can get
to work with one range query using:

searchRequestBuilder.setFilter(rangeFilterBuilder);

Is there a way to add multiple range queries to the SearchRequestBuilder
object?

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

You can use a BoolFilter or AndFilter.
See http://www.elasticsearch.org/guide/reference/java-api/query-dsl-filters/

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 19 mai 2013 à 14:43, es newbie dan.tuffery@gmail.com a écrit :

Is it possible to add multiple range queries using the Java API? I can get to work with one range query using:

searchRequestBuilder.setFilter(rangeFilterBuilder);

Is there a way to add multiple range queries to the SearchRequestBuilder object?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.