Devguru
Thinking Sphinx and Will Paginate issue.

Pagination issue

Today i was hanged upon strange issue contected to the way how Thinking Sphinx uses will_paginate to calculate and show pagination links. In example above you can’t get to any of the pages above 50. Here is some explanation to this: http://freelancing-god.github.com/ts/en/advanced_config.html#large-result-sets 

In my case i was missing the max_matches paramter in the search itself (sphinx config was ok) - so @collection.total_entries had correct value, however @collection.total_pages was caped by sphinx default 1000. And that makes me a very sad panda.