dexie-mongoify
dexie-mongoify copied to clipboard
Full text search
Hi All,
Thanks for this great library! I was talking with the folks at textile.io, who are building js-threaddb. It is a local-first database which will sync to the distributed web and currently depends on this library.
IMO, to power serious applications that use the browser for its primary storage mechanism, there needs to be a full-text search capability on the database. I submitted this issue about the topic. Are there any plans to implement full-text search via the $text
search operator in dexie-mongoify
?
A couple examples of "prior art" on the topic are https://github.com/dfahlander/Dexie.js/blob/master/samples/full-text-search/FullTextSearch.js and https://github.com/yathit/ydn-db-fulltext.
When you have a chance, please let me know if you have any thoughts on this topic and whether you think it makes sense to incorporate with dexie-mongoify
. Thanks!
I have no plans for implementing it for myself, but I will accept a proper PR (i.e. with tests) implementing $text
operator.
@jeffkhull see also https://github.com/kofrasa/mingo for some inspiration/ideas?
Let me know what you think about proceeding with the simplest option for now and continuing to evaluate whether to bite off something more ambitious - like natural language parsing, term ranking, typo detection etc with a future release.
EDIT: js-threaddb
specific discussion items have been moved here.
We should move this convo to https://github.com/textileio/js-threaddb/issues/36