An article by Michele Riva about building the search engine for simple REST API using Node.js and ElasticSearch. ElasticSearch is a search engine server built on top of Lucene with an amazing distributed-architecture support.
Full-text search can be both scary and exciting. Some popular databases such as MySQL and PostgreSQL are amazing solutions for storing data. But when it comes to full-text search performances, there’s a little competition with ElasticSearch.
Author guides you through building REST application called The Quotes Database which will allow us to store and search as many quotes as we want. He has prepared a JSON file containing 5000+ quotes with their authors, it is a starting data for populating ElasticSearch.
The article sections:
- Setting up Docker
- Setting up docker-compose
- Bootstrapping the Node.js app
- Populating ElasticSearch with quotes
- Creating a RESTful API
- Launching the application
Detailed guide / tutorial with all the code for Nodejs application, including ElasticSearch connector, CURL commands and how to for indexing operations available. Excellent!
[Read More]