Skip to content

This Repo includes a sample doc to follow along in How to Build an Autocomplete Feature with Elasticsearch

Notifications You must be signed in to change notification settings

CommandrAvander/autosuggest_elasticsearch_tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

autosuggest_elasticsearch_tutorial

This Repo includes the sample doc to follow along with the tutorial: How to Build an Autocomplete Feature with Elasticsearch.

autoSuggestDataLoader

This is a data indexing program for demonstrating the autoSuggest API in elasticsearch. Find it here.

General Points

  1. The sample data with 1000 documents can be found in the file mock_data.js.
  2. The code for indexing the documents is in the file runningHere.js.
  3. The configuration details are in the configs.js file. Here, we have details such as the elasticsearch host and port number configuration. In this file, by default, it is localhost:9233. Please make sure to change it.

Usage

  1. First run the npm install to install the package.json contents.
  2. Now run node runningHere.js to run the program to index the sample data.

About

This Repo includes a sample doc to follow along in How to Build an Autocomplete Feature with Elasticsearch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published