2

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?

1 Answer 1

2

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

Mongoosastic already depends on the ElasticSearch Module to perform ElasticSearch operations

Sign up to request clarification or add additional context in comments.

5 Comments

Actually i was thinking that when if will use mongoosastic now first i will have to create a schema and inside it i will mention elastic field elements but dont you think it will take more time to index fields again and again as the request comes to the server rather then just index the elastic elements once and use them. like i can do using elasticsearch module. Actually i am not clear about elasticsearch thats why i am asking this but anyways thnx for suggesting mongoosastic...............:)
@bkan, I have tried using mongoosastic and can't make 'Populate' to work. Do you know how to use it properly? I tried everything the documentation tells me and still I can't make it work. Thank you.
@IvorScott Thanks for this, but the guy who made this doesn't answer the same problem that is being encountered.
That seems to be the major problem of Mongoosastic. As of today, it still doesn't populate as the documentation claims.

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.