holtwick / onepile

Playground for the future of private notes and document management
https://onepile.app
MIT License
49 stars 4 forks source link

Highlight Search Results in Detail View #39

Open holtwick opened 5 years ago

holtwick commented 5 years ago

For a JS only implementation lunr is the clear winner: https://github.com/olivernn/lunr.js

But it does it all in memory, no real alternative available yet. Old proof of concept: http://reyesr.github.io/fullproof/ and https://github.com/reyesr/fullproof which is quite impressive

Interesting old article about tree like index: https://johnresig.com/blog/javascript-trie-performance-analysis/

Classic but Java: https://lucene.apache.org/core/2_9_4/queryparsersyntax.html#Wildcard%20Searches

And its web frontend: http://lucene.apache.org/solr/

Currently using: https://sqlite.org/fts5.html But no fuzzyness or powerful pattern features


Another candidate: https://github.com/fergiemcdowall/search-index

holtwick commented 5 years ago

Highlight finds in PM:

https://gist.github.com/marijnh/cee01b30b1890a5947c0 https://github.com/mattberkowitz/prosemirror-find-replace

holtwick commented 5 years ago

With some tricks, IDB was capable of doing fulltext quite well.

https://www.codeproject.com/Articles/744986/How-to-do-some-magic-with-indexedDB https://developers.google.com/web/fundamentals/instant-and-offline/web-storage/offline-for-pwa

holtwick commented 5 years ago

See also https://github.com/scrumpy/tiptap/issues/224

github-actions[bot] commented 4 years ago

Stale issue message