title: How do we get the last document from the elasticsearch index?
body: <p>I'm using NodeJS to find the first and last document in Elasticsearch Index.</p>
  
  <pre><code>client.search({index: 'test',size:1,sort:[{"_timestamp":{"order":
  "desc"}}]},function(err,resp,status) {     console.log("data",resp);
  });
  </code></pre>
  
  <p>Where am I going wrong?</p>