Elasticsearch in Go: A Developer's Guide

Elasticsearch in Go: A Developer’s Guide

How to get started with Elasticsearch in Go

Paul Verreth

Dear Philip.

There is an error in the STAPI URL, it should be http://stapi.co/

Kind regards.

Chris Harrison

I prefer the ElasticSearch Go lib written by Olivere
But it’s good to know theres other options out there

Anna Peterson

the simple.go example only returns an error: Error getting response: the client noticed that the server is not Elasticsearch and we do not support this unknown product


Thanks for this tutorial. I was running into errors running Elasticsearch with Docker. From the Elastic documentation (https://www.elastic.co/guid… I pulled a more recent version:

docker pull docker.elastic.co/elasticsearch/elasticsearch:7.14.1

Then I refactored run-elastic.sh to the following:

docker run -p 9200:9200 -p 9300:9300 -e “discovery.type=single-node” docker.elastic.co/elasticsearch/elasticsearch:7.14.1