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

Search - make term/prefix/wildcard/regex query parsing more lenient #63926

Merged
merged 2 commits into from
Oct 21, 2020

Conversation

markharwood
Copy link
Contributor

Remove errors when case_insensitive flag set to false
Closes #63893

@markharwood markharwood self-assigned this Oct 20, 2020
@markharwood markharwood added :Search/Search Search-related issues that do not fall into other categories v7.10.0 v8.0.0 labels Oct 20, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (:Search/Search)

@@ -109,9 +109,6 @@ public String value() {
}

public PrefixQueryBuilder caseInsensitive(boolean caseInsensitive) {
if (caseInsensitive == false) {
throw new IllegalArgumentException("The case insensitive setting cannot be set to false.");
}
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the plan here? To allow clients to set caseInsensitive to false?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep. Makes some of the clients easier to write

@markharwood
Copy link
Contributor Author

test this please

Copy link
Contributor

@jimczi jimczi left a comment

Choose a reason for hiding this comment

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

LGTM

@markharwood markharwood merged commit 81b3349 into elastic:master Oct 21, 2020
markharwood added a commit to markharwood/elasticsearch that referenced this pull request Oct 21, 2020
markharwood added a commit to markharwood/elasticsearch that referenced this pull request Oct 21, 2020
markharwood added a commit that referenced this pull request Oct 21, 2020
…63926) (#63981)

* Remove errors when case_insensitive flag set to false

Closes #63893
markharwood added a commit that referenced this pull request Oct 21, 2020
…63926)

Remove errors when case_insensitive flag set to false

Closes #63893
@andreidan andreidan removed the v7.10.1 label Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v7.10.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update semantics or definition of case_insensitive in term queries
6 participants