go-elasticsearch icon indicating copy to clipboard operation
go-elasticsearch copied to clipboard

The official Go client for Elasticsearch

Results 78 go-elasticsearch issues
Sort by recently updated
recently updated
newest added

The engineering team here at Elastic is looking for developers to participate in research and feedback sessions to learn more about how you use our [Go](https://github.com/elastic/go-elasticsearch) client and what improvements...

https://github.com/elastic/go-elasticsearch/blob/a58e89f1ecc47a94db81a93c13935e8da3b8438b/esutil/bulk_indexer.go#L380-L383 The `wg` Delta should generally be added before relevant go-routines are launched. Reference: https://pkg.go.dev/sync#WaitGroup.Add This might not be a big issue in this case, but it strays from best...

Bulk indexer makes a lot of heap allocation, it affect our applications' performance. I tried to reduce allocations by using "sync.pool". Bulkindexers that we regularly open and close cause allocation.

With the typeClient (v8) the SearchAfter takes a list of `types.FieldValue` where, according to the doc, a FieldValue is any of: ``` // int64 // Float64 // string // bool...

## Status Quo [go-elasticsearch.Config](https://github.com/elastic/go-elasticsearch/blob/624594e8d72aad852711469005959dbc8238f2f2/elasticsearch.go#L67-L111) defines how one can interact with Elasticsearch. At the moment this struct holds a mix of types, functions and interfaces. Functions: https://github.com/elastic/go-elasticsearch/blob/624594e8d72aad852711469005959dbc8238f2f2/elasticsearch.go#L89 https://github.com/elastic/go-elasticsearch/blob/624594e8d72aad852711469005959dbc8238f2f2/elasticsearch.go#L103 https://github.com/elastic/go-elasticsearch/blob/624594e8d72aad852711469005959dbc8238f2f2/elasticsearch.go#L110 Interfaces: https://github.com/elastic/go-elasticsearch/blob/624594e8d72aad852711469005959dbc8238f2f2/elasticsearch.go#L106-L107...

enhancement

window10 ``` func New() *elasticsearch.Client { cfg := elasticsearch.Config{ Addresses: []string{ "https://127.0.0.1:9200", }, Username: "elastic", Password: "aaaaaaaa", CertificateFingerprint: "aaaaaaa", } es, err := elasticsearch.NewClient(cfg) if err != nil { log.Fatal(err)...

I was unit testing my code, it was noticed that the return type NewBulkIndexer() is a BulkIndexer and error, but when looked into the NewBulkIndexer() code it just returns nil...

Hey! `WithVersion` - used to explicitly set version number for concurrency control needs to support 64 bit integers instead of 32bit as currently is. Index.WithVersion seems to get a 32bit...