title: how to get the top 1 document of each type, from a search on index(having multiple types)?
body: <p>We have an index named "machines", and have types "auto, bike, car, flight" in ElasticSearch</p>
  
  <p>I want to get the similar brands from my search on an index - from every type</p>
  
  <p>How do I query to get the top 1 document of each type, from a search on an index (having multiple types) via the Elasticsearch REST API?</p>