Search code examples
node.jsmongodbelasticsearchmongoosemongoosastic

Mongoose with ElasticSearch in node.js


I am using mongoDB in node.js with mongoose now I want to use ElasticSearch. Now can anyone please tell me would it be better to use mongoosastic, an npm module for both mongoose and ElasticSearch, or should I install ElasticSearch separately?


Solution

  • Since you are already using mongoose, you should use mongoosastic.

    Mongoosastic already depends on the ElasticSearch Module to perform ElasticSearch operations