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

Bring back client-side search #567

Open
srid opened this issue Feb 24, 2021 · 1 comment
Open

Bring back client-side search #567

srid opened this issue Feb 24, 2021 · 1 comment
Labels
enhancement New feature or request v2 Next generation neuron -- simple core, with plugins Web Interface UI related
Milestone

Comments

@srid
Copy link
Owner

srid commented Feb 24, 2021

Originally we had a JavaScript based search that used cache.json to search zettels by title or tag. It got replaced by GHCJS-based Impulse search, but that turned out to be very slow on larger notebooks, so it got removed. So let's reinstate the old search feature, based on JavaScript or any other language that compiles directly to JS (without runtime overhead), such as TypeScript and PureScript.

Look into using elasticlunr.js of #568

@srid srid added enhancement New feature or request Web Interface UI related v2 Next generation neuron -- simple core, with plugins labels Feb 24, 2021
@srid srid added this to the 2.0 milestone Feb 25, 2021
@srid
Copy link
Owner Author

srid commented Mar 30, 2021

https://blog.fission.codes/stork-search-james-little/

Stork is two things. First, it's an indexer: it indexes your loosely-structured content and creates a file that you can upload to your web server. Second, it's a Javascript + WebAssembly frontend for that index file: Stork will hook into an <input> on your web page, download the index you've specified, and display the best search results immediately to your user, as they type. The precomputed index and WebAssembly frontend module make the entire Stork engine very good, and very fast.


Some inspiration for the UX part of search: https://vitepress.vuejs.org/ (check the top right corner)

@srid srid mentioned this issue Mar 30, 2021
15 tasks
@srid srid pinned this issue Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v2 Next generation neuron -- simple core, with plugins Web Interface UI related
Projects
None yet
Development

No branches or pull requests

1 participant