Skip to content
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

limit 100,2 can not be used correctly #88

Closed
aitanjupt opened this issue Sep 8, 2015 · 2 comments
Closed

limit 100,2 can not be used correctly #88

aitanjupt opened this issue Sep 8, 2015 · 2 comments

Comments

@aitanjupt
Copy link

If i use "limit 100,2", I want to get results pagely, but I found this doesnt work well. "limit 100,2" 'result = "limit 2". How can I do Paging well?
"SELECT *,COUNT(1),SUM(orderTotalAmount) FROM myIndex where (id=110820) GROUP BY tId ORDER BY rId DESC LIMIT 0,5"
This is my sql. I found using "GROUP BY" causes this issue.
And I found "GROUP BY date_histogram()" even causes "limit 2" does not work.

@eliranmoyal
Copy link
Contributor

I don't think you can page on elastic when using aggregations.
see elastic/elasticsearch#7956 for term agg

and for date histogram
elastic/elasticsearch#7103

@aitanjupt
Copy link
Author

yes, its elasticsearch's issue. thank you for your information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants