ElasticSearch学习笔记(1)

ElasticSearch获取超过1w条数据,需要在查询的时候加上 track_total_hits :true 如:

GET /kibana_sample_data_flights/_search

{

  "track_total_hits": true,

  "query": {

  "match_all": {}

  }

}

posted @ 2021-05-27 16:23  薛无道  阅读(22)  评论(0编辑  收藏  举报