title: How can I set Ingest attachment(elasticsearch) plugin options with Java API?
body: <p>I'm using <a href="https://www.elastic.co/guide/en/elasticsearch/plugins/5.4/using-ingest-attachment.html" rel="nofollow noreferrer">Ingest Attachment Processor Plugin</a> on elasticsearch. I need to set attachment options(<code>indexed_chars</code>, <code>properties</code>, <code>ignore_missing</code> etc.) with Java API. How can I do that?</p>
  
  <p>I am creating index and setting pipeline like below:</p>
  
  <pre><code>String id = ...
  Map&lt;String, Object&gt; row = ...
  client.prepareIndex(indexName, "my_type", id)
                      .setSource(row)
                      .setPipeline("my_pipeline")
                      .execute();
  </code></pre>