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

KNN80DocValues should only be considered for BinaryDocValues fields #2147

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

VijayanB
Copy link
Member

@VijayanB VijayanB commented Sep 25, 2024

Description

KNN80DocValuesProducer should consider adding files from fields that has BinaryDocValues and doesn't have vector values in producer. By default, k-NN field types post 2.17 don't create BinaryDocValues for knn field anymore. However, users can set doc_values = true, to create BinaryDocValues explicitly like any other field, though it is not used for approximate search. Hence, we want to avoid considering fields that is created using NativeEngines990KnnVectorsFormat. Checking doc Type not equal to BinayDocValues and field doesn't have vectors will make sure we don't accidentally add native engine files that are created from NativeEngines990KnnVectorsFormat.

Related Issues

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@navneet1v
Copy link
Collaborator

@VijayanB thanks for catching and fixing this bug.

@navneet1v navneet1v added the bug Something isn't working label Sep 25, 2024
@navneet1v
Copy link
Collaborator

@VijayanB I won't recommend doing skip-change log for this and add the entry in the change log.

@navneet1v navneet1v added Bug Fixes Changes to a system or product designed to handle a programming bug/glitch and removed bug Something isn't working labels Sep 25, 2024
Consider adding files from fields that has BinaryDocValues and doesn't
have filter values in producer.

Signed-off-by: Vijayan Balasubramanian <[email protected]>
@VijayanB
Copy link
Member Author

@VijayanB I won't recommend doing skip-change log for this and add the entry in the change log.

Ack

@VijayanB VijayanB requested a review from navneet1v September 26, 2024 02:04
@VijayanB VijayanB merged commit 329fc57 into opensearch-project:main Sep 26, 2024
37 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 26, 2024
…2147)

Consider adding files from fields that has BinaryDocValues and doesn't
have filter values in producer.

Signed-off-by: Vijayan Balasubramanian <[email protected]>
(cherry picked from commit 329fc57)
VijayanB added a commit that referenced this pull request Sep 26, 2024
…2147) (#2151)

Consider adding files from fields that has BinaryDocValues and doesn't
have filter values in producer.

Signed-off-by: Vijayan Balasubramanian <[email protected]>
(cherry picked from commit 329fc57)

Co-authored-by: Vijayan Balasubramanian <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Bug Fixes Changes to a system or product designed to handle a programming bug/glitch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants