# rangeFilter execution in Java API for 1.0

**URL:** https://discuss.elastic.co/t/rangefilter-execution-in-java-api-for-1-0/15912
**Category:** Elasticsearch
**Created:** [February 20, 2014, 1:15am UTC](https://discuss.elastic.co/t/rangefilter-execution-in-java-api-for-1-0/15912 "2014-02-20T01:15:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Matthew\_Kehrt](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Matthew\_Kehrt](https://discuss.elastic.co/u/Matthew_Kehrt)
#### Post date: [February 20, 2014, 1:15am UTC](https://discuss.elastic.co/t/rangefilter-execution-in-java-api-for-1-0/15912/1 "2014-02-20T01:15:15Z")

</div>

Hi,

I'm investigating upgrading an ES installation to 1.0 and I see that  
numericRangeFilter is deprecated, with the recommendation that rangeFilter  
with "execution": "fielddata" be used instead. However, in the Java API,  
RangeFilterBuilder has no "execution" method, or anything similar, and  
neither do any of its superclasses. In fact, code containing the  
expression "FilterBuilders.rangeFilter..execution("fielddata")" will not compile for exactly this reason.

I see that TermsFilterBuilder _does_ have an "execution" method, at least  
according the docs. Should there be one in RangeFilterBuilder as well? Or  
am I missing something?

Thanks,  
Matt

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8056961b-0514-4190-ba7a-667b3ff63c26%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8056961b-0514-4190-ba7a-667b3ff63c26%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)
#### Post date: [February 20, 2014, 8:34am UTC](https://discuss.elastic.co/t/rangefilter-execution-in-java-api-for-1-0/15912/2 "2014-02-20T08:34:14Z")

</div>

I can see a `setExecution` method in RangeFilterBuilder, I think this is  
what you are looking for?

On Thu, Feb 20, 2014 at 2:15 AM, Matthew Kehrt [mkehrt@gmail.com](mailto:mkehrt@gmail.com) wrote:

> Hi,
> 
> I'm investigating upgrading an ES installation to 1.0 and I see that  
> numericRangeFilter is deprecated, with the recommendation that rangeFilter  
> with "execution": "fielddata" be used instead. However, in the Java API,  
> RangeFilterBuilder has no "execution" method, or anything similar, and  
> neither do any of its superclasses. In fact, code containing the  
> expression "FilterBuilders.rangeFilter..execution("fielddata")" will not compile for exactly this reason.
> 
> I see that TermsFilterBuilder _does_ have an "execution" method, at least  
> according the docs. Should there be one in RangeFilterBuilder as well? Or  
> am I missing something?
> 
> Thanks,  
> Matt
> 
> --  
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/8056961b-0514-4190-ba7a-667b3ff63c26%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8056961b-0514-4190-ba7a-667b3ff63c26%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Adrien Grand

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j4zj%2BZF6xbAZ2FugBzsFyzOOAJ8M0PM5cZ6XpDVb5YG3Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j4zj%2BZF6xbAZ2FugBzsFyzOOAJ8M0PM5cZ6XpDVb5YG3Q%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 1:48am UTC](https://discuss.elastic.co/t/rangefilter-execution-in-java-api-for-1-0/15912/3 "2017-07-06T01:48:51Z")

</div>


