Fixing dub search
aberba
karabutaworld at gmail.com
Mon Dec 28 10:49:58 UTC 2020
Current dub registry search is inaccurate because it uses the
built-in MongoDB search which isn't designed for accurate search.
To fix this, a real search engine is needed. ElasticSearch is an
overkill for what we need... basic accurate string search.
Solution: use MeiliSearch. It's very lightweight and fast (1GB
vps is more than enough). Very easy to use... just a REST API
call. I already have a package for meilisearch on dub.
What's needed: a hosted running instance of MeiliSearch for use
in dub search. Since only the search functionality needs to be
fixed, MeiliSearch will index a copy off all packages and
re-index when they chang. The MeiliSearch index will handle
search queries whilst MongoDB continues to handle everything else.
I can make a PR for the MeiliSearch integration but I need to
know foundation is willing to host a MeiliSearch instance for
that.
More information about the Digitalmars-d
mailing list