kidpollo / tanker

IndexTank Integration with your fav ORM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disabling pagination returns max: 10 results

joemsak opened this issue · comments

Given the same search term:

When I use :paginate => false, I get 10 results

when I put the normal pagination options back in (:page => params[:page], :per_page => x) I get 145 results

can you try using the 'edge' version. I thought I had a fix for this already.

I just merged some changes from a pull request done by @adrnai which do some changes to the instatiation logic can you please test your code by using the code from master

gem 'tanker', :git => 'git://github.com/kidpollo/tanker.git'

Trying now, thank you

On Thu, Sep 22, 2011 at 3:10 AM, kidpollo <
reply@reply.github.com>wrote:

I just merged some changes from a pull request done by @adrnai which do
some changes to the instatiation logic can you please test your code by
using the code from master

gem 'tanker', :git => 'git://github.com/kidpollo/tanker.git'

Reply to this email directly or view it on GitHub:
#48 (comment)

Hmmm, I still get 10 results for the same search with :paginate => false,
that produces 144 results with :per_page => 5000, :page => params[:page]

On Thu, Sep 22, 2011 at 9:09 AM, Joe Sak joe@joesak.com wrote:

Trying now, thank you

On Thu, Sep 22, 2011 at 3:10 AM, kidpollo <
reply@reply.github.com>wrote:

I just merged some changes from a pull request done by @adrnai which do
some changes to the instatiation logic can you please test your code by
using the code from master

gem 'tanker', :git => 'git://github.com/kidpollo/tanker.git'

Reply to this email directly or view it on GitHub:
#48 (comment)

commented

Have same issue. Any help?

I know the problem, the thing is that Index Tank seems to enforce a default of 10

"len": how many results to return (default: 10)

I think I will remove supporting the 'false' option because assuming a number might be counter intuitive.

Opinions?

http://indextank.com/documentation/api

Always check the index api for reference :P

Upgraded the gem to not support the :paginate false