You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The BulkIndexerConfig ask for a Client *elasticsearch.Client
// BulkIndexerConfig represents configuration of the indexer.typeBulkIndexerConfigstruct {
...Client*elasticsearch.Client// The Elasticsearch client....
}
So, if you use a TypedClient, you can't use it in BulkIndexerConfig, you will have to instantiate a Client only for the BulkIndexerConfig.
What I propose is to change the BulkIndexerConfig to ask for a Transport so it can be compatible with both Client and TypedClient
// BulkIndexerConfig represents configuration of the indexer.typeBulkIndexerConfigstruct {
...Transport esapi.Transport// The Elasticsearch transport....