module Elasticsearch
elasticsearch-transport versions prior to 7.2.0 suffered of a race condition on accessing the connection pool. This issue was fixed (in 7.2.0) with github.com/elastic/elasticsearch-ruby/commit/15f9d78591a6e8823948494d94b15b0ca38819d1
This plugin, at the moment, is using elasticsearch >= 5.0.5 When this requirement ceases, this patch could be removed.
elasticsearch-transport 7.2.0 - 7.14.0 had a bug where setting http headers
ES::Client.new ..., transport_options: { headers: { 'Authorization' => ... } }
would be lost github.com/elastic/elasticsearch-ruby/issues/1428
NOTE: needs to be idempotent as filter ES plugin might apply the same patch!
@private