ES(elasticsearch) springboot+es【深分页scrollId】

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ES(elasticsearch) springboot+es【深分页scrollId】相关的知识,希望对你有一定的参考价值。

参考技术A 详情见: https://www.elastic.co/guide/en/elasticsearch/client/java-rest/7.9/java-rest-high-create-index.html

详情见: https://www.elastic.co/guide/en/elasticsearch/client/java-rest/7.9/java-rest-high-indices-exists.html

详情见: https://www.elastic.co/guide/en/elasticsearch/client/java-rest/7.9/java-rest-high-delete-index.html

详情见: https://www.elastic.co/guide/en/elasticsearch/client/java-rest/7.9/java-rest-high-document-index.html

详情见: https://www.elastic.co/guide/en/elasticsearch/client/java-rest/7.9/java-rest-high-search.html

from-size浅分页适合数据量不大的情况(官网推荐是数据少于10000条)
详细请见官网: https://www.elastic.co/guide/cn/elasticsearch/guide/2.x/_query_phase.html
从下图可知es中有7条数据

16、深分页(scroll【还有一种search_after方法】)

scroll用的是快照模式,有个窗口期,都是基于这个窗口期的快照来做的查询,scrollId对应的就是这个快照,scrollId是不变的

1、 https://elasticsearch.cn/question/2935
2、 https://www.elastic.co/guide/cn/elasticsearch/guide/2.x/_fetch_phase.html
3、 https://www.jianshu.com/p/91d03b16af77

以上是关于ES(elasticsearch) springboot+es【深分页scrollId】的主要内容,如果未能解决你的问题,请参考以下文章

es启动报AccessDeniedException: /opt/apps/es/elasticsearch/config/elasticsearch.keystore解决方法

es启动报AccessDeniedException: /opt/apps/es/elasticsearch/config/elasticsearch.keystore解决方法

ElasticSearch(简称ES)

【es】es配置文件elasticsearch.yml

[ES] ElasticSearch总结

[ES] ElasticSearch总结