DEV Community

Discussion on: MongoDb Global Search

Collapse
 
mattryanmtl profile image
Matt Ryan

You could try using Atlas Search

You could also try with js.

db.movies.findOne()
db.getCollectionNames().forEach(function(collection) {
  print(collection);
});
Enter fullscreen mode Exit fullscreen mode

Then run

mongo movies dbsearch.js
Enter fullscreen mode Exit fullscreen mode

Or you can use db.eval

Somthing like

db.eval( function() {
    var one = db.movies.find({"title":"The Matrix"});
    var two = db.movies.find({"title":"Black Panther"});
});
Enter fullscreen mode Exit fullscreen mode
Collapse
 
dhanushnehru profile image
Dhanush N

Hi Matt, thanks for your input

Actually Atlas Search is good but it is paid when it comes to production use case & also while creating indexes, there is a limit.

Is there anyother tool which is free of cost or opensource & effective to deal with millions of records in db ?

Collapse
 
mattryanmtl profile image
Matt Ryan