rangeFilter execution in Java API for 1.0


(Matthew Kehrt) #1

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.
To view this discussion on the web visit 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.


(Adrien Grand) #2

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 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.
To view this discussion on the web visit
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.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j4zj%2BZF6xbAZ2FugBzsFyzOOAJ8M0PM5cZ6XpDVb5YG3Q%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #3