title: How to use DeleteByQuery plugin with embedded ES 2.3.3
body: <p>I have run ES 2.3.3 in an embedded fashion but I'm unable to invoke the DeleteByQuery action due to the described exception. I added the  DeleteByQuery plugin to my classpath and also set the plugin.types settings for my not but it is still not working.</p>
  
  <p>My Maven dependencies:
  <code>
  &lt;dependency&gt;
      &lt;groupId&gt;org.elasticsearch&lt;/groupId&gt;
      &lt;artifactId&gt;elasticsearch&lt;/artifactId&gt;
      &lt;version&gt;2.3.3&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.elasticsearch.plugin&lt;/groupId&gt;
      &lt;artifactId&gt;delete-by-query&lt;/artifactId&gt;
      &lt;version&gt;2.3.3&lt;/version&gt;
  &lt;/dependency&gt;
  </code></p>
  
  <p>My ES Setup:</p>
  
  <pre><code>Settings elasticsearchSettings = Settings.settingsBuilder()
  .put("threadpool.index.queue_size", -1)
  .put("path.home", options.getDirectory())
  .put("plugin.types", DeleteByQueryPlugin.class.getName())
  .build();
  
  NodeBuilder builder = NodeBuilder.nodeBuilder();
  node = builder.local(true).settings(elasticsearchSettings).node();
  </code></pre>
  
  <p>Invocation of the action which is used to truncate the index.</p>
  
  <pre><code>DeleteByQueryRequestBuilder builder = new DeleteByQueryRequestBuilder(node.client(), DeleteByQueryAction.INSTANCE);
              builder.setIndices(indexName).setQuery(QueryBuilders.matchAllQuery()).execute().addListener(new ActionListener&lt;DeleteByQueryResponse&gt;() {
                  public void onResponse(DeleteByQueryResponse response) {
                      if (log.isDebugEnabled()) {
                          log.debug("Deleted index {" + indexName + "}. Duration " + (System.currentTimeMillis() - start) + "[ms]");
                      }
                      sub.onCompleted();
                  };
  
                  @Override
                  public void onFailure(Throwable e) {
                      log.error("Deleting index {" + indexName + "} failed. Duration " + (System.currentTimeMillis() - start) + "[ms]", e);
                      sub.onError(e);
                  }
              });
  </code></pre>
  
  <p>Exception that I'm seeing:</p>
  
  <pre><code>Caused by: java.lang.IllegalStateException: failed to find action [org.elasticsearch.action.deletebyquery.DeleteByQueryAction@7c1ed3a2] to execute
      at org.elasticsearch.client.node.NodeClient.doExecute(NodeClient.java:56) ~[elasticsearch-2.3.3.jar:2.3.3]
      at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:359) ~[elasticsearch-2.3.3.jar:2.3.3]
  </code></pre>