Application created to work with ElasticSearch engine
- How To Create An Elasticsearch Index Using The Olivere Driver In Golang
- Creating Elastic Search Mapping in Golang
- How to implement Elasticsearch in Go
# Download docker image
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.12.0
# Run ElasticSearch node
docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.12.0
- Prepare requirements from prerequisites
- Set
ELASTIC_URL
environment variable to ElasticSearch server - Run
go build go-elastic
thengo run go-elastic
Using command docker-compose up
from project root should build Docker image and run it with predefined services in file
Use Postman collection in ./test/ElasticSearchRequests.json
as template requests