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

Introducing SearchRequest #279

Merged
merged 13 commits into from
Mar 5, 2025
Merged

Introducing SearchRequest #279

merged 13 commits into from
Mar 5, 2025

Conversation

valencik
Copy link
Contributor

@valencik valencik commented Feb 22, 2025

This PR moves all of the searching logic into a new Searcher class whose search method takes a SearchRequest.
A SearchRequest includes the query in addition to the desired number of documents, the stored fields to retrieve, the fields to highlight, and whether or not the last term of the query should be rewritten as a prefix.

This clean up removed hard coded highlighting logic from MultiIndex and enables highlighting multiple fields.

image

@valencik valencik self-assigned this Feb 22, 2025
@valencik valencik marked this pull request as ready for review February 23, 2025 13:20
Copy link
Contributor

@samspills samspills left a comment

Choose a reason for hiding this comment

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

nice nice nice!! I think splitting out a Searcher + all that logic from MultiIndex makes a lot of sense

@valencik valencik merged commit bf56dcc into main Mar 5, 2025
21 checks passed
@valencik valencik deleted the search-request branch March 5, 2025 19:41
@valencik valencik mentioned this pull request Mar 8, 2025
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.

2 participants