title: How do I get the documents that has highest _score in same keys?
body: <p>I'm working on Elasticsearch. 
  How do I get the documents that has highest _score in same keys? and Which API should I use or read? </p>
  
  <p><em>Example Documents And Query</em></p>
  
  <pre class="lang-js prettyprint-override"><code>{ "foreignId": 1, "body": "One is a green apple, however another one is red."}
  { "foreignId": 1, "body": "apple apple apple apple" } // has a higher score than the one right above
  { "foreignId": 2, "body": "One is a green apple, however another one is red."}
  { "foreignId": 2, "body": "apple apple apple" } // has a higher score than the one right above
  
  {"query": { "match_phrase": { "body": "apple"}}}
  </code></pre>
  
  <p><em>Expected</em></p>
  
  <pre class="lang-js prettyprint-override"><code>{ "foreignId": 1, "body": "apple apple apple apple", _score: &lt;the highest where foreignId=1&gt; }
  { "foreignId": 2, "body": "apple apple apple", _score: &lt;the highest where foreignId=2&gt; }
  </code></pre>