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
{{ message }}
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.
Please add support for adding ES Client Plugins (like the org.elasticsearch.index.reindex.ReindexPlugin). Currently it's not possible to configure one or more plugins via EsConfiguration.
As a workaround I've to do something like:
ManagedEsClient prepareEsClient = new ManagedEsClient(configuration.getEsConfiguration());
TransportAddress[] addresses = TransportAddressHelper.fromHostAndPorts(configuration.getEsConfiguration().getServers());
// Rebuild Client with ReindexPlugin (unsupported in ManagedEsClient)
ManagedEsClient elasticsearchClient = new ManagedEsClient(TransportClient.builder()
.settings(prepareEsClient.getClient().settings())
.addPlugin(ReindexPlugin.class)
.build()
.addTransportAddresses(addresses));
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Please add support for adding ES Client Plugins (like the
org.elasticsearch.index.reindex.ReindexPlugin
). Currently it's not possible to configure one or more plugins viaEsConfiguration
.As a workaround I've to do something like:
The text was updated successfully, but these errors were encountered: