title: ElasticSearch PHP - get list of 10 (most recent) items in type/index
body: <p>I have a index called publications_items and type called "publication".</p>
  
  <p>I'd like to have the 10 most recent added publications. (some matchAll principle)</p>
  
  <p>I'm using ElasticSearch PHP (<a href="http://www.elasticsearch.org/guide/en/elasticsearch/client/php-api/current/_quickstart.html" rel="nofollow">http://www.elasticsearch.org/guide/en/elasticsearch/client/php-api/current/_quickstart.html</a>)</p>
  
  <p>Basically i'm just doing a default get but i would not know how to do this in ElasticSearchPHP.</p>
  
  <p>In sense.qbox.io i do :</p>
  
  <pre><code>POST /publications_items/_search {    "query": {
        "match_all": {}    } }
  </code></pre>
  
  <p>and it works fine</p>
  
  <p>mapping:</p>
  
  <pre><code>PUT /publications_items/ {    "mappings": {
        "publication": {
           "properties": {
              "title": {
                 "type": "string"
              },
              "url": {
                 "type": "string"
              },
              "description": {
                 "type": "string"
              },
              "year": {
                 "type": "integer"
              },
              "author": {
                 "type": "string"
              }
           }
        }    } }
  </code></pre>