-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider adding support for OFFSET #31549
Comments
Pinging @elastic/es-search-aggs |
good,please add return total record count for pagination! |
Any hope? |
@flydocs-jignesh As an update, OFFSET is not on our near future feature list. |
How long? |
I want know how long . can support 'offset' too. dear~ |
me too.... dear .... |
Hope to support offset as soon as possible!!!! |
I use /_xpack/sql/translate to turn the sql to be es sql, and then append from to strip the offset .... |
It's really useful.Hope to support it ... |
Just hopping on here. I've been migrating a very large MySQL database over to elastic search to improve search speed. A key part of my application is allowing my users to pull lots of data from my database, and I've historically used offsets to ensure that they don't get duplicate records. Now that I know that elastic search sql doesn't support offsets, I'm having to write some funky logic to do it manually. For example, where I used to use a simple offset command like this:
I'm now having to write something like this:
Then I have to strip the Would really appreciate if you all could support |
Why not consider pagination by sql? |
I'm very very very eager for pagination.when can we get it? |
Opendistro-for-elasticsearch SQL support it and powerful. |
Does new version's ES-SQL provide solutions to help paging? |
Is there any news about this? |
OFFSET is not on our map at the moment. |
Hello @astefan. We are in May 2021. Do you still have this issue on your map? I can´t paginate backwards using a cursor. Is there another solution for this problem? Thanks. |
@brunoanasofia things are the same as they were in December 2020 (when my latest reply was added). |
Hope to support offset as soon as possible!!!! |
@astefan Any updates on this? Seems like it would be something fairly trivial to add, considering elasticsearch querying supports this behaviour with the "from" parameter. For now, the workaround that I'm doing is as follows:
|
Hi, |
At the moment, ES SQL supports
LIMIT
only. Would be helpful to also supportOFFSET
to allow users to use pagination.The text was updated successfully, but these errors were encountered: