How To Bulk Index Elasticsearch Documents Using Golang

Introduction If you’re storing documents in Elasticsearch, it’s important to know how to index large numbers of documents at a time. Fortunately, it’s easy to accomplish this task using the Bulk() API method to index Elasticsearch documents with the help of the Olivere Golang driver. In this article, we’ll provide step-by-step instructions for performing a … Continued

How to Insert MongoDB Documents from JSON using the Golang Driver

Introduction This tutorial will explain how to insert MongoDB documents from JSON using the Golang driver. When using the Golang driver to insert MongoDB documents from a JSON file with Golang, MongoDB automatically creates a collection at the time of insertion, so no preexisting documents or collections are required. However, there must be a few … Continued

How To Index Elasticsearch Documents Using The Olivere Golang Driver

Introduction This tutorial will cover how to index Elasticsearch documents using Olivere. The Golang driver for Elasticsearch will support multiple versions of the Elasticsearch program. The default port for Elasticsearch is 9200, but the port can be reconfigured in the Elasticsearch cluster’s elasticsearch.yml file. Be sure to understand the prerequisites for indexing documents in Elasticsearch … Continued

How To Create An Elasticsearch Index Using The Olivere Driver In Golang

Introduction The Olivere driver in the Go language (Golang) is excellent for quickly building simple or sophisticated queries for your Elasticsearch index. Basic queries are easy to do, but the Olivere driver also has the capability to deliver accurate results when you create highly complex queries. It’s great that connecting the Olivere driver to Elasticsearch … Continued

How to Make An HTTP Request In Golang To Index Elasticsearch Documents

Introduction This tutorial will demonstrate how to make an HTTP request in Golang to index Elasticsearch documents. This tutorial will provide examples of how to use Golang’s built-in packages to index Elasticsearch documents Golang HTTP client, how to index Elasticsearch documents with Golang using just the built-in "net/http" HTTP client package and how to index … Continued

How To Get An Elasticsearch Cluster’s Health And Stats In Golang

Introduction This tutorial will cover how to use the Olivere driver to obtain an Elasticsearch cluster health stats with Golang. A widely utilized third-party driver, the Olivere driver supports multiple versions of Elasticsearch. The default port for Elasticsearch is 9200, however, this can be configured in the cluster’s elasticsearch.yml file if and as needed. Prerequisites … Continued

Connect Elasticsearch Golang with Olivere Driver

Introduction The Olivere’s Elastic package library is a very popular third-party driver for Elasticsearch. This tutorial will explain how to install the Olivere Driver in Golang on a server’s $GOPATH and how to use it to connect to Elasticsearch. The Oliver driver supports multiple versions of Elasticsearch and this tutorial will also cover how to … Continued

Index Multiple Elasticsearch Documents In A JSON File Using Golang

Introduction This tutorial will explain how to index JSON documents with Elasticsearch using Golang’s built-in packages. The JSON encoding library can be used to index Elasticsearch documents with the Golang HTTP client and upload JSON Elasticsearch documents with Golang to index multiple documents. Indexing Elasticsearch documents with Golang can be done with only the built-in … Continued

Keep in the know!

Subscribe to our emails and we’ll let you know what’s going on at ObjectRocket. We hate spam and make it easy to unsubscribe.