Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (47.6k points)

I have gone through many blogs and sites about configuring Elasticsearch for MongoDB to index Collections in MongoDB but none of them was straightforward.

Please explain to me a step by step process for installing elasticsearch, which should include:

  • configuration

  • run in the browser

I am using Node.js with express.js, so please help accordingly.

2 Answers

0 votes
by (106k points)

To use Elasticsearch with MongoDB you can set up a single node Elasticsearch "cluster" to index MongoDB for use in a NodeJS, Express app on a fresh EC2 Ubuntu 14.04 instance and make sure everything is up to date.

sudo apt-get update

After that install NodeJS.

sudo apt-get install nodejs 

sudo apt-get install npm

0 votes
by (108k points)
edited by

Once you have ES installed, refer the following procedures step by step:

  1. You have to generate the index for the documents.
  2. Then you will be importing the collection into the ES with a tool known as mongo-connector.
  3. After importing, relocate the index that was created by mongo-connector in ES to the index we created in step 1.
  4. At last, try out the current index and observe how documents are indexed all the time while we have the mongo-connector running.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Feb 19, 2020 in Web Technology by ashely (50.2k points)
0 votes
1 answer
asked Feb 16, 2020 in Web Technology by ashely (50.2k points)
0 votes
1 answer

Browse Categories

...