title: Inserting an Element with a _parent field
body: <p>I'm using ElasticSearch for an application in order to store and search for data.
  Because it's also important to search for relationships in my particular case, I recently changed the structure of my data and I am using the _parent field now. (<a href="http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-parent-field.html" rel="nofollow noreferrer">http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-parent-field.html</a>)</p>
  <p>I already designed the search query, which works perfectly fine. However, I now have a problem when inserting a new child entry in my database.</p>
  <p>It should work this way:</p>
  <hr />
  <p>Without the _parent field, when I wanted to achieve this</p>
  <pre><code>$ curl -XPUT 'http://localhost:9200/data/child/1' -d '
  </code></pre>
  <p>I inserted the data this way using the JEST API:</p>
  <pre><code>client.execute(new Index.Builder(payload).index(&quot;data&quot;).type(&quot;child&quot;).build());
  </code></pre>
  <hr />
  <p>When I want to achieve this:</p>
  <pre><code>$ curl -XPOST localhost:9200/data/child?parent=154121-d'
  </code></pre>
  <p>How am I supposed to implement this using the JEST-API?</p>