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

Clone the BytesRef[] values in KeywordField#newSetQuery #12158

Merged
merged 3 commits into from
Mar 1, 2023

Conversation

gsmiller
Copy link
Contributor

Description

SortedSetDocValuesSetQuery#new sorts the provided terms BytesRef[] in place, so we should really clone the values provided to KeywordField#newSetQuery before initializing the query (we do this properly in the other locations where we invoke the ctor).

@gsmiller gsmiller merged commit 001acaf into apache:main Mar 1, 2023
@gsmiller gsmiller deleted the GH/keywordfield-newsetquery-clone branch March 1, 2023 02:30
@gsmiller gsmiller added this to the 9.6.0 milestone Mar 1, 2023
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.

3 participants