Hi! Nice to hear from you.
Yes, Mongo is generally a preferable source to search on, since its the main
database for Allura. Solr is used sometimes because it performs better when
there aren't mongo indexes available and the number of items to search is large.
For example: freetext searches, or searching on fields where there isn't a
mongo index set up. It can also be used to search across many types of objects
at once (since they're all stored in the same solr collection). That can be
done at /p/test/search/?q=foo for example.
There's probably some historical evolution of code too, where it didn't
necessarily end up with the ideal architecture.
-Dave
On 6/6/24 7:10 AM, Maxime Parmentier wrote:
Hello dev team,
1 month ago I started delving into the Allura project for my own wiki
implementation needs.
Recently, I've been working on searching projects inside neighborhoods and
I've noticed usage of both Solr and then Mongo to filter and retrieve data
for each project.
I was then wondering what was the pertinence of going through Solr first,
now that Mongo is pretty fast with its own indexes.
Regards,
Maxime PARMENTIER
--
Dave Brondsema : d...@brondsema.net
http://www.brondsema.net : personal
http://www.splike.com : programming
<><