/node-elasticsearch-tutorial

Examples for setting up and using elasticsearch in Node.js

Primary LanguageJavaScript

Elasticsearch in Node.js Examples


This repo contains examples on how to use elasticsearch in Node.js to create search functionalities.

To clone this repo in your machine:

git clone https://github.com/behroozk/node-elasticsearch-tutorial.git

Then, to download all the requirements:

npm install

Here is a list of all the files in this repo:

  1. data.json: sample data file
  2. index.js: script for indexing the data in elasticsearch
  3. search.js: search functionality
  4. filter.js: basic filter functionality
  5. aggregations.js: demonstration of how aggregations work
  6. suggest.js: script for generating suggestions for search terms