Skip to content

Add KNNDefaultExcludesProcessor to auto-exclude vector fields from _s…#3152

Draft
shatejas wants to merge 2 commits intoopensearch-project:mainfrom
shatejas:knn-default-excludes-processor
Draft

Add KNNDefaultExcludesProcessor to auto-exclude vector fields from _s…#3152
shatejas wants to merge 2 commits intoopensearch-project:mainfrom
shatejas:knn-default-excludes-processor

Conversation

@shatejas
Copy link
Collaborator

@shatejas shatejas commented Mar 9, 2026

…ource

Adds a search request processor that intercepts queries containing KNNQueryBuilder and automatically adds the knn vector field names to _source excludes. User-provided includes are preserved.

Pending

Benchmarks

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.

shatejas added 2 commits March 9, 2026 12:54
…ource

Adds a search request processor that intercepts queries containing
KNNQueryBuilder and automatically adds the knn vector field names
to _source excludes. User-provided includes are preserved.
Signed-off-by: Tejas Shah <shatejas@amazon.com>
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.

1 participant