Skip to content

Conversation

@finnegancarroll
Copy link
Contributor

Description

Knn query hardcodes a 'none' value for the stored_fields param to disable fetching of stored fields. While REST is type agnostic and able to handle stored_fields provided as a list as well as this special case, assigning 'none' to protobuf stored_fields chunks this value into a character list (['_','n','o','n','e','_']).

This change fixes the parsing logic to handle this case and properly set stored_fields.

Issues Resolved

N/A

Testing

  • New functionality includes testing

[Describe how this change was tested]


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.

Copy link
Member

@OVI3D0 OVI3D0 left a comment

Choose a reason for hiding this comment

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

LGTM

@OVI3D0 OVI3D0 merged commit cf093f6 into opensearch-project:main Oct 23, 2025
18 of 19 checks passed
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