dantuff
(Dan Tuffery)
May 19, 2013, 12:43pm
1
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 .
dadoonet
(David Pilato)
May 19, 2013, 1:20pm
3
You can use a BoolFilter or AndFilter.
See Elasticsearch Platform — Find real-time answers at scale | Elastic
--
David
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 .