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

Improved search engine #293

Open
Greenheart opened this issue Mar 21, 2023 · 2 comments
Open

Improved search engine #293

Greenheart opened this issue Mar 21, 2023 · 2 comments
Labels
enhancement New feature or request p2-nice-to-have

Comments

@Greenheart
Copy link
Owner

For now, the initial search is a good start. But it could be improved in the future.

Inspiration for how to implement an open source search solution: https://tauri.app/blog/2023/02/09/tauri-community-growth-and-feedback

This would require a server component, but might be worth it since it could save us time to focus on other things.

However, there might be a better client side search library out there that could help. Perhaps a library using WebAssembly modules to improve performance.

@Greenheart Greenheart added enhancement New feature or request p2-nice-to-have labels Mar 21, 2023
@Greenheart
Copy link
Owner Author

Greenheart commented Mar 23, 2023

This is a complete solution only using open source tech, and without any server runtime. Instead, it seems to prerender a search index: https://github.com/sveltejs/kit/blob/becf2b0e630ea5d23070873dfd30cecc07d5e498/sites/kit.svelte.dev/src/routes/content.json/%2Bserver.js

Full implementation code: https://github.com/sveltejs/kit/tree/master/sites/kit.svelte.dev/src/lib/search - (permalink 2023-03-23)

This is based on very promising library https://github.com/nextapps-de/flexsearch

@Greenheart
Copy link
Owner Author

Another promising search library that seems to be possible to run on the client:

https://github.com/oramasearch/orama

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request p2-nice-to-have
Projects
None yet
Development

No branches or pull requests

1 participant