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

EnableScoring::Disabled - optional Searcher #1780

Merged
merged 3 commits into from
Jan 12, 2023
Merged

Conversation

shikhar
Copy link
Collaborator

@shikhar shikhar commented Jan 11, 2023

We have a custom Query that requires the Searcher in weight(..) (for looking up cached data used in matching that is kept warmed and keyed on searcher generation), even when scoring is disabled (e.g. using DocSetCollector)

So I am proposing to make a further API change on top of #1667 such that EnableScoring::Disabled can contain an optional Searcher, and nudging towards providing it when available.

Searcher::search(..) has been updated accordingly.

src/query/query.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@fulmicoton fulmicoton left a comment

Choose a reason for hiding this comment

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

approved but please consider addressing nitpick comment

@fulmicoton
Copy link
Collaborator

@shikhar you can hit the squash and merge button I think you have the permissions!

@shikhar shikhar merged commit 2650111 into main Jan 12, 2023
@shikhar shikhar deleted the enable-scoring-searcher branch January 12, 2023 14:26
@shikhar
Copy link
Collaborator Author

shikhar commented Jan 12, 2023

yup was just waiting on CI :)

This was referenced Jan 13, 2023
Hodkinson pushed a commit to Hodkinson/tantivy that referenced this pull request Jan 30, 2023
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.

None yet

2 participants