Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,19 @@ public IndexSettings getIndexSettings() {
}

/**
* The {@code SearchLookup} for the this context
* The {@code SearchLookup} for this context
*/
public SearchLookup searchLookup() {
return searchLookup;
}

/**
* The search context of the request
*/
public SearchContext searchContext() {
return searchContext;
}

Comment on lines +111 to +117
Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Member Author

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

/**
* The original query
*/
Expand Down
Loading