title: How to do create_or_update for elasticsearch?
body: <p>I have a simple example:</p>
  
  <pre><code>var client = new elasticsearch.Client({
      host: 'localhost:9200'
  });
  
    client.create({ index: 't1', type: 't2', id : id, body: row},function(err,results) {
              callback(err, results )
    })
  </code></pre>
  
  <p>If record is exist, result error: DocumentAlreadyExistsException. How to update record if record exist ?</p>