dexie-mongoify icon indicating copy to clipboard operation
dexie-mongoify copied to clipboard

Full text search

Open cyphercider opened this issue 4 years ago • 4 comments

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!

cyphercider avatar Oct 29 '20 11:10 cyphercider

I have no plans for implementing it for myself, but I will accept a proper PR (i.e. with tests) implementing $text operator.

YurySolovyov avatar Oct 29 '20 11:10 YurySolovyov

@jeffkhull see also https://github.com/kofrasa/mingo for some inspiration/ideas?

carsonfarmer avatar Nov 02 '20 17:11 carsonfarmer

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.

cyphercider avatar Nov 03 '20 13:11 cyphercider

We should move this convo to https://github.com/textileio/js-threaddb/issues/36

carsonfarmer avatar Nov 03 '20 16:11 carsonfarmer