Transport Client in ES
<p>We have an requirement where we have to use the delete by query plugin.
As per new ES version 2.x the delete by query is used as an plugin through Transport client as shown below:
private TransportClient dc1Client = null;</p>

<p>this.dc1Client=TransportClient.builder().settings(settings).addPlugin(DeleteByQueryPlugin.class).build();</p>

<p>We have been using same transport client for indexing and searching. But adding the delete plugin will make it heavy while performing search and index operations.</p>

<p>Can we have more than one Transport client in an application??</p>

<p>one transport client for indexing and searching and another transport client for using delete by query plugin</p>