{
"size" :,
"query": {
"match" : {
"person_name" : "张老师"
}},
"search_after": [, ],
"sort": [
{"create_time": "asc"},
{"pk": "desc"}
]
}

URL http://10.10.6.225:9200/t_resource_info/_search

方式:POST

返回的查询结果:

{
"took": ,
"timed_out": false,
"_shards": {
"total": ,
"successful": ,
"skipped": ,
"failed":
},
"hits": {
"total": ,
"max_score": null,
"hits": [
{
"_index": "t_resource_info",
"_type": "doc",
"_id": "199_805683",
"_score": null,
"_source": {
"resource_format": "mp3",
"pk": ,
"structure_id": ,
"person_id": ,
"id": "199_805683",
"create_time": "2009-06-11 15:59:38",
"table_name": "t_resource_info",
"resource_type_name": "音频",
"file_id": "C28DFAEF-904E-46C3-8119-4A78B0E337CE",
"resource_type": ,
"resource_id_int": ,
"@version": "",
"identity_id": ,
"area_code": ,
"resource_page": ,
"down_count": ,
"@timestamp": "2018-03-03T08:56:42.516Z",
"resource_id_char": "417d63b5-4549-4012-83ba-3d33739dedf6",
"resource_title": "最后一课",
"type": "dsideal_db",
"person_name": "张老师"
},
"sort": [
, ]
},
{
"_index": "t_resource_info",
"_type": "doc",
"_id": "199_805700",
"_score": null,
"_source": {
"resource_format": "mp3",
"pk": ,
"structure_id": ,
"person_id": ,
"id": "199_805700",
"create_time": "2009-06-11 16:02:22",
"table_name": "t_resource_info",
"resource_type_name": "音频",
"file_id": "8CD3DA0A-63F2-4CBF-BCA6-0D14345813D5",
"resource_type": ,
"resource_id_int": ,
"@version": "",
"identity_id": ,
"area_code": ,
"resource_page": ,
"down_count": ,
"@timestamp": "2018-03-03T08:56:42.517Z",
"resource_id_char": "c60247c3-5ab3-41b1-b772-40d24ed187a3",
"resource_title": "最后一课",
"type": "dsideal_db",
"person_name": "张老师"
},
"sort": [
, ]
},
{
"_index": "t_resource_info",
"_type": "doc",
"_id": "199_805719",
"_score": null,
"_source": {
"resource_format": "mp3",
"pk": ,
"structure_id": ,
"person_id": ,
"id": "199_805719",
"create_time": "2009-06-11 16:09:18",
"table_name": "t_resource_info",
"resource_type_name": "音频",
"file_id": "1F6F1D59-FF2D-43CF-B4ED-A08CB62F2943",
"resource_type": ,
"resource_id_int": ,
"@version": "",
"identity_id": ,
"area_code": ,
"resource_page": ,
"down_count": ,
"@timestamp": "2018-03-03T08:56:42.567Z",
"resource_id_char": "c1c6fc35-aa64-4c83-9322-ef62ec82ff2d",
"resource_title": "最后 一课",
"type": "dsideal_db",
"person_name": "张老师"
},
"sort": [
, ]
}
]
}
}

Elasticsearch 6.x 的分页查询数据的更多相关文章

  1. oracle 分页查询数据重复问题

    最近在做项目的时候发现一个问题,oracle 在查询分页数据的时候,有几条数据重复查询了,并且有几条数据在分页的时候消失了.百度了一下发现,ORACLE 在查询数据的时候返回的行不是固定的,他只是按照 ...

  2. Oracle数据库排序后分页查询数据错误问题解决

    一.问题描述:根据更新时间倒序排序然后分页查询数据,但是点击分页操作的时候,会出现数据重复看似没有操作的情况 二.问题错误原因分析 分页查询的SQL语句: select * FROM (select ...

  3. SqlServer存储过程应用二:分页查询数据并动态拼接where条件

    前言 开发中查询功能是贯穿全文的,我们来盘一盘使用存储过程分页查询,并且支持动态拼接where条件. 划重点:支持动态拼接where条件 对存储过程的使用有疑问的同学去[SqlServer存储过程的创 ...

  4. easyui-datagrid连接数据库实现分页查询数据

    一.利用MVC思想建立底层数据库: package com.hanqi.dao; import java.util.ArrayList; import java.util.List; import o ...

  5. mysq带条件的分页查询数据结果错误

    记一次mysql分页条件查询的结果出错: 以一张用户表为例,首先我们看表中的所有数据,注意红色框住的部分: 我们使用不带条件的分页查询来查询,数据显示是OK的: SELECT id,login_nam ...

  6. .net下MVC中使用Tuple分页查询数据

    主要是在DAL层写查询分页的代码. 例如DAL层上代码: public Tuple<List<WxBindDto>, int> GetMbersInfo(int start, ...

  7. 关于EF+MVC5分页查询数据效率问题

    2017-03-31 11:57:41,290 [5] ERROR ErrorMsg - System.Data.Entity.Core.EntityCommandExecutionException ...

  8. MySQL下分页查询数据

      -- 分页 -- 前两条 -- 启始位置从下标0开始,查询的是数据库中的第1条开始 -- 0:启始位置 2:一次性查询多少条 select * from account LIMIT 0,2; -- ...

  9. java redis 分页查询数据

    package com.liying.tiger.test; import java.util.List; import org.springframework.context.Application ...

随机推荐

  1. bzoj 5301 [Cqoi2018]异或序列 莫队

    5301: [Cqoi2018]异或序列 Time Limit: 10 Sec  Memory Limit: 512 MBSubmit: 204  Solved: 155[Submit][Status ...

  2. List保存在ViewState

    private List<SYSUAO> UserRoleList { get { return ViewState["UserRoleList"] as List&l ...

  3. 获取异常信息e.printStackTrace()的内容

    获取异常信息e.printStackTrace()的内容 最近做项目的时候需要记录操作的日志,但是记录异常信息的是发现使用e.getMessage()根本无法满足需要,并且e.getMessage() ...

  4. np.diff函数

    np.diff函数 觉得有用的话,欢迎一起讨论相互学习~Follow Me 数组中a[n]-a[n-1] import numpy as np a=np.array([1, 6, 7, 8, 12]) ...

  5. tomcat启动时,内存溢出,Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main"

     问题原因 通过tomcat启动项目,也许是因为项目太大,配置的内存不够用了.老是报内存溢出的问题. 解决办法 1.选中项目 右键 run as ->Run Configurations... ...

  6. 机器学习算法整理(一)线性回归与梯度下降 python实现

    回归算法 以下均为自己看视频做的笔记,自用,侵删! 一.线性回归 θ是bias(偏置项) 线性回归算法代码实现 # coding: utf-8 ​ get_ipython().run_line_mag ...

  7. 数学建模 TSP(旅行商问题) Lingo求解

    model: sets: cities../:level; link(cities, cities): distance, x; !距离矩阵; endsets data: distance ; end ...

  8. angularJS $http $q $promise

    一天早晨,爹对儿子说:“宝儿,出去看看天气如何!” 每个星期天的早晨,爹都叫小宝拿着超级望远镜去家附近最高的山头上看看天气走势如何,小宝说没问题,我们可以认为小宝在离开家的时候给了他爹一个promis ...

  9. 重新找回spyder3-editor 里的code completion

    升级到spyder3之后, 突然丢失了code autocompletion在editor context里. 觉得太不爽了. 虽然在ipython窗格里TAB键的自动完成功能依然完好. 仔细观察 T ...

  10. Lucene之Java实战

    1.导包 2.索引的创建 2.1首先,我们需要定义一个词法分析器. Analyzer analyzer = new IKAnalyzer();//官方推荐 Analyzer analyzer = ne ...