A Simple search engine for products.
Elasticsearch is widely used in many Companies because of it's simplicity and speed in searching. It stores the data in the form of documents(files) in a Index (similar to table in SQL). Searching is done with the method of Inverted Indices which makes elasticsearch fast.
Dataset can be obtained from here.
Note : keep the docker installed and running before the next steps.
Steps to set Elasticsearch container
-docker pull docker.elastic.co/elasticsearch/elasticsearch:7.11.0
-docker run --name CONTAINER_NAME -d -p 9200:9200 IMAGE_NAME
Steps to run the Flask application.
-Execute the commands where the Dockerfile is present.
-docker build -t IMAGE_NAME .
-docker run --name CONTAINER_NAME -d -p 5000:5000 IMAGE_NAEME
Run the command to check the containers are up and running
Go to the browser and hit http://localhost:5000 you will see the home page of the application and search for the products Results :
Architecture of the environment:
Tools Used: