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:
data.json
: sample data fileindex.js
: script for indexing the data in elasticsearchsearch.js
: search functionalityfilter.js
: basic filter functionalityaggregations.js
: demonstration of how aggregations worksuggest.js
: script for generating suggestions for search terms