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

Make tantivy queries a bit lighter #171

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Make tantivy queries a bit lighter #171

wants to merge 3 commits into from

Conversation

pudo
Copy link
Member

@pudo pudo commented Aug 27, 2024

This reduces the clauses in the tantivy query down a bit, hoping that lighter queries will equal a faster xref.

WIP

Comment on lines +129 to +130
for word in clean.split(WS):
fields[type.name].add(word)
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need to index each word individually? I thought it's sufficient to index the full name as long as we query for each part

Copy link
Member Author

Choose a reason for hiding this comment

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

tantivy definitely has its own tokenizer, I just thought if we're going to split it up for phonetic anyway, why not use those tokens :) but yeah we can obviously rely on the real indexer instead.

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