Hi,

how can I count the number of results that a search query returned
while using will_paginate? Using .size of the result array does not
work, because thinking_sphinx always returns 20 results for each web
page that is displayed.

Of course, I could send the query two times and do not specify
the :page-option the first time, but is there a nicer way to count the
results?

Motivation is simple: if the number of search results exceeds a
certain number, I want the user to refine the search criteria.

Thanks.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to