Answer the question
In order to leave comments, you need to log in
How to do full text search in mongodb on multiple fields?
there is a table let's say products , fields id, name, descrption...
created an index
db.products.createIndex({'name': 'text', 'description': 'text'});
db.products.find({$text : {$search : 'Мебель'}})
Answer the question
In order to leave comments, you need to log in
I don’t know how to solve the search for two fields, I made one field and added the name and description values then I created an index, and already the search for a new field
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question