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

Sequential match priority #13

Open
micheleriva opened this issue Jul 15, 2022 · 2 comments
Open

Sequential match priority #13

micheleriva opened this issue Jul 15, 2022 · 2 comments
Labels
good first issue
Projects

Comments

@micheleriva
Copy link
Member

@micheleriva micheleriva commented Jul 15, 2022

Is your feature request related to a problem? Please describe.
As for now, Lyra performs searches on individual tokens.

So for example, if I have the following documents:

  • "Hello everyone here. My name is Michele"
  • "Hello Michele"

When searching for the term "Hello Michele", there's still a chance to get the first document. We should take into account that we want to find the documents and tokens in a precise order

@micheleriva
Copy link
Member Author

@micheleriva micheleriva commented Jul 15, 2022

For future me: I would consider the possibility of using an n-gram algorithm for that. Index size will increase, but it might be worth it.

@micheleriva
Copy link
Member Author

@micheleriva micheleriva commented Jul 15, 2022

I know how this is gonna end

7zyychkxcg591

@micheleriva micheleriva added this to Backlog in Lyra v0.1.0 Jul 16, 2022
@micheleriva micheleriva moved this from Backlog to To do in Lyra v0.1.0 Jul 19, 2022
@micheleriva micheleriva removed the v0.1.0 label Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue
Projects
Development

No branches or pull requests

1 participant