WebMemex / webmemex-extension

📇 Your digital memory extension, as a browser extension
https://webmemex.org
Other
208 stars 45 forks source link

Replace usual search with a simple word filter. #105

Closed Treora closed 7 years ago

Treora commented 7 years ago

pouchdb-quick-search was performing much too slow to be fun. Until we have a faster alternative, we can use a quick rough hack: just filtering the texts for presence of all query words. No indexing, stemming, tfidf, etc.

This takes time linear to the number of documents, but can easily be made more efficient by limiting the number of visits we read, and loading more of them when we need more results (= an infinite scroll solution). (update: done)

The idea was mentioned in https://github.com/WebMemex/webmemex-extension/issues/41#issuecomment-305907143