We are trying to create an online-shopping like application in which we have to store a huge amount of data,since the data that will be stored are mostly document like data, the suggestion was to store the data in mongodb and using elasticsearch to add the search functionality, but i also know that elasticsearch itself can be used as a database to store the data, but I'm not sure if that's the right thing to do. Can you guys help me out?

  • 1
    Just read two articles concering this: blog.quarkslab.com/… and quora.com/… . Highly recommending them to get an insight to the pros/cons of the two systems.
    – akauppi
    Commented Jan 12, 2016 at 20:27

1 Answer 1


Elastic search is a search index that looks like a db and mongo is a database with decent search capabilities too.

I think the determinant should be your familiarity with the systems actually and if this is a greenfield project where you're diving into new technologies, you can minimize risk by using a more familiar technology like SQL instead of Mongo.

If you do go the mongo + elastic search route, my only other advice would be to NOT try to use the mongo db river, and insert and update into elastic search using the regular old rest api.

  • 1
    What are the problems with river and mongo driver?
    – user363295
    Commented May 18, 2014 at 22:25
  • Lack of control IMHO. Commented May 19, 2014 at 2:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.