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

Make FilteredQuery a forbidden API. #11224

Merged

Conversation

jpountz
Copy link
Contributor

@jpountz jpountz commented May 19, 2015

This commit makes FilteredQuery a forbidden API and also removes some more usage
of the Filter API. There are some remaining code using filters for parent/child
queries but I'm not touching this as they are already being refactored in #6511.

@jpountz jpountz added v2.0.0-beta1 review :Search/Search Search-related issues that do not fall into other categories labels May 19, 2015
nullValue.intValue(),
nullValue.intValue(),
true, true));
return new ConstantScoreQuery(termQuery(nullValue, null));
Copy link
Contributor

Choose a reason for hiding this comment

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

How come nullValueFilter (no idea what this method is doing, its name is horrible, are we sure we really need it??????) is CSQ(term()) here for short/float but NRQ for long. Why the inconsistency?

@rmuir
Copy link
Contributor

rmuir commented May 19, 2015

Overall looks good. i added one comment for a WTF.

@jpountz
Copy link
Contributor Author

jpountz commented May 19, 2015

Good catch, this was a left-over on my end, I pushed a new commit.

@rmuir
Copy link
Contributor

rmuir commented May 19, 2015

thanks, looks good to me. i still wonder what these methods are doing. We should investigate in a future PR. If you don't know, then I think thats a good sign we should axe them.

@jpountz
Copy link
Contributor Author

jpountz commented May 19, 2015

If I read https://www.elastic.co/guide/en/elasticsearch/guide/current/_dealing_with_null_values.html#_missing_filter correctly, the goal of this option is to be able to make a difference between a document that is missing a value and a document that was explicitely provided null as a value.

@rmuir
Copy link
Contributor

rmuir commented May 19, 2015

Worthless.

This commit makes FilteredQuery a forbidden API and also removes some more usage
of the Filter API. There are some remaining code using filters for parent/child
queries but I'm not touching this as they are already being refactored in elastic#6511.
@jpountz jpountz force-pushed the enhancement/filtered_query_forbidden branch from 3820142 to 4131bcb Compare May 19, 2015 13:34
jpountz added a commit that referenced this pull request May 19, 2015
…bidden

Search: Make FilteredQuery a forbidden API.
@jpountz jpountz merged commit 52899c8 into elastic:master May 19, 2015
@kevinkluge kevinkluge removed the review label May 19, 2015
@jpountz jpountz deleted the enhancement/filtered_query_forbidden branch May 19, 2015 13:35
@clintongormley clintongormley changed the title Search: Make FilteredQuery a forbidden API. Make FilteredQuery a forbidden API. Jun 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Search/Search Search-related issues that do not fall into other categories v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants