Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added execution option to range filter and deprecated numeric_range filter. #4247

Closed
wants to merge 1 commit into from

Conversation

martijnvg
Copy link
Member

Relates to #4034

…data` as values.

Deprecated `numeric_range` filter in favor for the `range` filter with `fielddata` as execution.

Closes elastic#4034
}

Filter filter = null;
MapperService.SmartNameFieldMappers smartNameFieldMappers = parseContext.smartFieldMappers(fieldName);
if (smartNameFieldMappers != null) {
if (smartNameFieldMappers.hasMapper()) {
filter = smartNameFieldMappers.mapper().rangeFilter(from, to, includeLower, includeUpper, parseContext);
if (execution.equals("index")) {
if (cache == null) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cache flag might come after / before execution, so you might be setting the flag when it has been set by the user..., I would check it after the parsing

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strike that, it looks good, confused by the changes view on github...

@kimchy
Copy link
Member

kimchy commented Nov 25, 2013

looks good to me, I would say we can push it to 0.90 as well....

@martijnvg
Copy link
Member Author

Makes sense since it only deprecates the numeric_range filter.

@ghost ghost assigned martijnvg Nov 25, 2013
@martijnvg
Copy link
Member Author

pushed to master and 0.90

@martijnvg martijnvg closed this Nov 25, 2013
@martijnvg martijnvg deleted the api-cleanup/range-filter branch May 18, 2015 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants