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

Deprecate NotQueryBuilder #14203

Merged
merged 1 commit into from Oct 20, 2015
Merged

Deprecate NotQueryBuilder #14203

merged 1 commit into from Oct 20, 2015

Conversation

cbuescher
Copy link
Member

This PR deprecates the use of NotQueryBuilder like we
did with And- and OrQueryBuilder before. BooleanQueryBuilder
is now the only way to combine several filters together, so all
uses of the not filter can be replaced
with a must_not clause.

Relates to #13761

@@ -773,6 +773,10 @@ public static MissingQueryBuilder missingQuery(String name) {
return new MissingQueryBuilder(name);
}

/**
* @deprecated Use {@link #boolQuery()} instead
Copy link
Contributor

Choose a reason for hiding this comment

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

add a reference for the mustNot clause?

@bleskes
Copy link
Contributor

bleskes commented Oct 20, 2015

thanks Christoph, left some minor comments.

@bleskes
Copy link
Contributor

bleskes commented Oct 20, 2015

LGTM

@cbuescher
Copy link
Member Author

Thanks, added reference to the must not clause in the deprecation notes.

This PR deprecates the use of NotQueryBuilder like we
did with And- and OrQueryBuilder before.
BooleanQueryBuilder is now the only way to combine several
filters together, so all uses of the not filter can be replaced
with a must_not clause.
cbuescher added a commit that referenced this pull request Oct 20, 2015
@cbuescher cbuescher merged commit 86c5255 into elastic:2.1 Oct 20, 2015
@cbuescher
Copy link
Member Author

Also on 2.x with 0127af1

@cbuescher cbuescher deleted the deprecate-not branch March 31, 2016 09:27
@clintongormley clintongormley added :Search/Search Search-related issues that do not fall into other categories and removed :Query DSL labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>deprecation :Search/Search Search-related issues that do not fall into other categories v2.1.0 v2.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants