Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MongoDB and Whoosh. Do I need both?

I am working on the project that uses MongoDB and Whoosh. I wonder if the Whoosh is necessary if I can use MongoDB search. I am sure Whoosh was setup in the system for good, but I am not sure I understand right its purpose. Please give me some idea about what it gives that MongoDB alone doesn't.

like image 618
Sergei Basharov Avatar asked Nov 13 '22 22:11

Sergei Basharov


1 Answers

MongoDB search requires you to add keywords that you can later search on, so it's not really full text search (as Whoosh is). Whoosh can also do stemming (not available out of the box with MongoDB) and flexible scoring of results (including user-defined scoring).

like image 190
Vinay Sajip Avatar answered Dec 14 '22 12:12

Vinay Sajip