Giter Site home page Giter Site logo

Comments (3)

yin-bp avatar yin-bp commented on July 21, 2024

elasticsearch官方提供的fetch_size机制类似于elasticsearch的scroll查询,不支持从指定的地方开始翻页的功能,官方的文档可以去看看:
https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-rest-format.html
https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-pagination.html

可以试试第三方提供的Elasticsearch-Sql插件,可以支持指定的地方开始翻页,参考文档:
https://esdoc.bbossgroups.com/#/Elasticsearch-SQL-ORM?id=%e7%ae%80%e5%8d%95%e6%a1%88%e4%be%8b

from bboss-elasticsearch.

dik111 avatar dik111 commented on July 21, 2024

elasticsearch官方提供的fetch_size机制类似于elasticsearch的scroll查询,不支持从指定的地方开始翻页的功能,官方的文档可以去看看:
https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-rest-format.html
https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-pagination.html

可以试试第三方提供的Elasticsearch-Sql插件,可以支持指定的地方开始翻页,参考文档:
https://esdoc.bbossgroups.com/#/Elasticsearch-SQL-ORM?id=%e7%ae%80%e5%8d%95%e6%a1%88%e4%be%8b

第三方提供的Elasticsearch-Sql插件在ES7.3.2版本,如果配置了x-pack好像会报错。。。。我还是直接用DSL查询分页吧,谢谢了!

from bboss-elasticsearch.

yin-bp avatar yin-bp commented on July 21, 2024

是的,sql也是转换为dsl执行,直接用dsl即可,下面的文档都可以参考:
https://esdoc.bbossgroups.com/#/from-size
https://esdoc.bbossgroups.com/#/Scroll-SliceScroll-api
https://esdoc.bbossgroups.com/#/search-after

from bboss-elasticsearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.