-
Notifications
You must be signed in to change notification settings - Fork 400
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
I cant paginate search result #75
Comments
This should get your pagination going! I have submitted pull request for this issue. |
Edit: never mind, found the PR, it has already been merged. @sergeymarshennikov, please do a composer update on dev-master, this should fix your issue. |
@timgws But, it does not work correctly // controller side $query = Input::get('query'); // view side : testSearch.blade as a search result, total 31 pages links rendered in the bottom of view for pagination in this case, url is : http://localhost:8000/testSearch?query=xxx+yyy when I click page 2 link, url is http://localhost:8000/testSearch?query=xxx+yyy?page=2 But posts on page2 are all the same as on page 1 when I click page 3 link, the same result as on page 1 rendered. How can I fix this I need to see result on page 2 unlike page 1 please help me |
It has been a little while since I crossed this bridge, the issue is likely from not coordinating your elasticsearch result size and from value to your application result limit, from, to value. |
Sorry I did not understand correctly Would you explain again? |
Search for "paginating elasticsearch result", I believe the problem is that you are not telling elasticsearch to return the next result set. |
can you teach me detailed code? |
|
I will check soon Thanks |
this code will work for the first page but it has a flaw for next pages you need to add a code like this to make it work fully: $items->appends(['q' => $q]); |
Those who are facing similar problem, here is an example that works in Controller:
in view paginate like this:
|
I like to use elasticquent
It is my pleasure to use elasticquent
this is my code
As you can see, I want to see 15 data per page. But, I can see 10 result per page but not 15
And when I click page 2 on result page, it goes page=2 but this page=2 is not elastic search result
How can I integrate pagination with elasticquent
if you help me, it will be appreciated
The text was updated successfully, but these errors were encountered: