title: How to consume a document in attachment pipeline using elasticsearch ruby?
body: <p>I am trying to attach a document in elasticsearch pipeline but I didn't any method for it.</p>
  
  <p>For this call - </p>
  
  <pre><code>PUT my_index/my_type/my_id?pipeline=attachment
  {
    "data": "e1xydGYxXGFuc2kNCkxvcmVtIGlwc3VtIGRvbG9yIHNpdCBhbWV0DQpccGFyIH0="
  }
  </code></pre>
  
  <p>Please let me know if you know it.</p>
  
  <p>Thanks in advance.</p>