In this recipe, we will create a very common web application functionality to create, index, and search, in our case, products. We will use ElasticSearch as our search service. We will use Docker to create our local ElasticSearch container and to run all search operations.
A prerequisite for this recipe is having access to an ElasticSearch instance, either local or remote, in our recipe, as well as having Docker installed in the local development machine:
$ docker -v Docker version 1.3.3, build d344625
We used Docker to deploy our local ElasticSearch instance using the command:
docker run -d -p 9200:9200 -p 9300:9300 dockerfile/elasticsearch
The preceding command instructs
docker to run the ...