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

Better exception if array passed to term query. #11384

Closed
wants to merge 1 commit into from
Closed

Better exception if array passed to term query. #11384

wants to merge 1 commit into from

Conversation

spyk
Copy link

@spyk spyk commented May 27, 2015

Added a check that explicitly throws an exception in case of an array, and a small unit test to verify it.

By the way, the particular test case would not throw an exception before the fix, but would actually only evaluate the last value of the array, so the behavior was indeed erratic in case of an array.

Closes #11246.

@javanna
Copy link
Member

javanna commented May 28, 2015

Hi @spyk thanks for your PR, would you mind signing our CLA so we can merge it in please?

@spyk
Copy link
Author

spyk commented May 28, 2015

Yep, signed yesterday just after the PR, do I need to do anything else to update the status?

@clintongormley
Copy link

Yes - I see the signature, it uses a different email address. thanks @spyk

@javanna javanna self-assigned this May 29, 2015
@javanna javanna closed this in 784a263 May 29, 2015
@javanna
Copy link
Member

javanna commented May 29, 2015

Thanks @spyk merged! Also marking as breaking as people who might be sending an array will get errors back now.

@clintongormley
Copy link

I think this is a bug fix rather than a breaking enhancement - relabelled as such.

@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
>bug :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.

Better exception if array passed to term query
3 participants