{"action":"opened","issue":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSElasticaBundle/issues/1256","repository_url":"https://api.github.com/repos/FriendsOfSymfony/FOSElasticaBundle","labels_url":"https://api.github.com/repos/FriendsOfSymfony/FOSElasticaBundle/issues/1256/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSElasticaBundle/issues/1256/comments","events_url":"https://api.github.com/repos/FriendsOfSymfony/FOSElasticaBundle/issues/1256/events","html_url":"https://github.com/FriendsOfSymfony/FOSElasticaBundle/issues/1256","id":232049023,"number":1256,"title":"help: paginated search not working?","user":{"login":"kiwibun","id":11544393,"avatar_url":"https://avatars3.githubusercontent.com/u/11544393?v=3","gravatar_id":"","url":"https://api.github.com/users/kiwibun","html_url":"https://github.com/kiwibun","followers_url":"https://api.github.com/users/kiwibun/followers","following_url":"https://api.github.com/users/kiwibun/following{/other_user}","gists_url":"https://api.github.com/users/kiwibun/gists{/gist_id}","starred_url":"https://api.github.com/users/kiwibun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiwibun/subscriptions","organizations_url":"https://api.github.com/users/kiwibun/orgs","repos_url":"https://api.github.com/users/kiwibun/repos","events_url":"https://api.github.com/users/kiwibun/events{/privacy}","received_events_url":"https://api.github.com/users/kiwibun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-29T15:17:04Z","updated_at":"2017-05-29T15:17:04Z","closed_at":null,"body":"I'm facing a problem while using paginated search with the ElasticaBundle in the latest version .\r\n\r\nMy code in the controller:\r\n\r\n$results = $finder->findPaginated($term);\r\n$results->setMaxPerPage(10);\r\n$results->setCurrentPage($page);\r\n$results->getCurrentPageResults();\r\n\r\nThis works for page 1, but not for e.g. page 2. I get a 404 not found exception (below), even if there should be results (when I debug during the page-1-request getNbResults() returns 34).\r\n\r\nException: >>> OutOfRangeCurrentPageException: Page \"2\" does not exist. The currentPage must be inferior to \"1\" <<<\r\n\r\nAre you able to reproduce this behavior?\r\n\r\nThanks in advance\r\nChris"}}
{"actor":{"display_login":"kiwibun"}}