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

Implement incremental plain text search #5

Open
SUPERCILEX opened this issue Jul 19, 2024 · 0 comments
Open

Implement incremental plain text search #5

SUPERCILEX opened this issue Jul 19, 2024 · 0 comments

Comments

@SUPERCILEX
Copy link
Owner

Right now if you add characters to a plain text search, the entire database is queried again. It would be much more efficient to only start searching from the places where a substring was already found.

Implementation notes:

  • To support backspacing efficiently, we should probably keep all the results from the first query and a stack of successive superstrings with indices pointing to the original results.
  • Adding prefixes should be supportable by starting a search from offset - N where N is the number of prefix bytes.
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

No branches or pull requests

1 participant