-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Adds a getter for searchContext in FetchContext #18951
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
Conversation
Signed-off-by: Owais <owaiskazi19@gmail.com>
|
❌ Gradle check result for e2992b0: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for e2992b0: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
@owaiskazi19, What do you need from It looks like |
|
❕ Gradle check result for e2992b0: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18951 +/- ##
============================================
- Coverage 72.89% 72.86% -0.03%
+ Complexity 69318 69285 -33
============================================
Files 5642 5642
Lines 318636 318637 +1
Branches 46107 46107
============================================
- Hits 232254 232172 -82
- Misses 67540 67659 +119
+ Partials 18842 18806 -36 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| /** | ||
| * The search context of the request | ||
| */ | ||
| public SearchContext searchContext() { | ||
| return searchContext; | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copying this comment to code so that it needs to be resolved:
@owaiskazi19, What do you need from SearchContext that you're not already getting?
It looks like FetchContext was specifically designed to provide read-only access to specific fields from SearchContext. I'm concerned that if FetchContext starts to expose the whole SearchContext, then that includes all of the setters, so it's no longer an immutable view.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@msfroh figured out a way to handle this in the neural search side without exposing searchcontext in FetchContext. Will close this PR
Description
Adds getter for searchContext in FetchContext. We do have other getters for query, filters from searchContext in FetchContext but no getter for searchContext itself.
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
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.