Skip to content

feat(search): implement search with tantivy#3831

Merged
goranmoomin merged 4 commits intomainfrom
feat/tantivy-search
Feb 11, 2026
Merged

feat(search): implement search with tantivy#3831
goranmoomin merged 4 commits intomainfrom
feat/tantivy-search

Conversation

@goranmoomin
Copy link
Collaborator

Description

This is a preliminary implementation of implementing search with tantivy, but reusing the same infrastructure of orama. It already provides much better results for korean, hence the PR.
I've also cherrypicked the one commit from PR #3825 (I've closed that PR).
Tantivy apparently requires .commit() calls for the results to be reflected, and the Rust side isn't running in the main thread anyways, so I just updated the code to commit on every single tantivy update.

Limitations & Possible Improvements

The implementation is currently sending the entire document via the tauri bridge for now when initializing.

If we decide that we want to have the rust side handle more parts of the search, i think the best way forward would be: have rust maintain the index, parsing the sessions from the files and so on, and tinybase listeners will trigger an update by just sending the session id only (instead of the current model where we send the entire content from the JS side) (and might additionally use directory watching as well to maintain the index).

This might be beneficial in performance, but it does mean that we will have to implement two different versions of session parsing code, one in JS and one in Rust. Should weigh tradeoffs.

@netlify
Copy link

netlify bot commented Feb 10, 2026

Deploy Preview for hyprnote-storybook ready!

Name Link
🔨 Latest commit 8ca9141
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/698b2ea0621dab0007948974
😎 Deploy Preview https://deploy-preview-3831--hyprnote-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Feb 10, 2026

Deploy Preview for hyprnote ready!

Name Link
🔨 Latest commit 8ca9141
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/698b2ea05de61a0008357a89
😎 Deploy Preview https://deploy-preview-3831--hyprnote.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@goranmoomin goranmoomin merged commit efbd846 into main Feb 11, 2026
17 checks passed
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.

1 participant

Comments