查询语句
1.查询序号是1-6
2.按照price降序排序。
3.from表示从那条语句开始,size表示查询几条数据

  GET  /cars/transactions/_search?pretty
{
  "from":1
  , "size": 5, 
  "query": {
    "match_all": {}
  },
  "sort": [
    {
      "price": {
        "order": "desc"
      }
    }
  ]
    }

查询结果:

ElasticSearch分页查询

相关文章: