{"action":"closed","issue":{"url":"https://api.github.com/repos/ankane/searchkick/issues/725","repository_url":"https://api.github.com/repos/ankane/searchkick","labels_url":"https://api.github.com/repos/ankane/searchkick/issues/725/labels{/name}","comments_url":"https://api.github.com/repos/ankane/searchkick/issues/725/comments","events_url":"https://api.github.com/repos/ankane/searchkick/issues/725/events","html_url":"https://github.com/ankane/searchkick/issues/725","id":175768092,"number":725,"title":"Support for will_paginate :total_entries option?","user":{"login":"kench90","id":14551953,"avatar_url":"https://avatars.githubusercontent.com/u/14551953?v=3","gravatar_id":"","url":"https://api.github.com/users/kench90","html_url":"https://github.com/kench90","followers_url":"https://api.github.com/users/kench90/followers","following_url":"https://api.github.com/users/kench90/following{/other_user}","gists_url":"https://api.github.com/users/kench90/gists{/gist_id}","starred_url":"https://api.github.com/users/kench90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kench90/subscriptions","organizations_url":"https://api.github.com/users/kench90/orgs","repos_url":"https://api.github.com/users/kench90/repos","events_url":"https://api.github.com/users/kench90/events{/privacy}","received_events_url":"https://api.github.com/users/kench90/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-08T14:26:05Z","updated_at":"2016-09-08T19:32:57Z","closed_at":"2016-09-08T19:32:57Z","body":"Hi **Ankane**\r\n\r\nWhen I use Post.search(\"\\*\", page: 1, per_page: 10), it works fine and yields **10** results per page. However, with **10_000** documents, the result will yield **1_000** page links, which is too much. So, I would like to control that number. I can do this through will_paginates :total_entries option. For example, Post.all.paginate(page: 1, per_page: 10, total_entries: 1000) will give me **100** pages, which is acceptable for me. But, unfortunately when I do this with _Searchkick_: Post.search(\"\\*\", page: 1, per_page: 10, total_entries: 1000), it does not override the total_entries count and gives me **1000** pages. Basically, **per_page** and the **page** options work, but why not **total_entries**? Is there any way I could retrieve **100** pages?"}}
{"actor":{"display_login":"kench90"}}