Peter Tellgren wrote:
> I then tried the following search to see how well this worked.
> 
> @books = Book.search :all, :conditions => { :sold => 0..0 }
> @comp = Book.find(:all, :conditions => ( "book_sold = 0")
> 
> To my suprise, @books only contains 20 records as compared to my wish for
> 1036 that @comp gave me
> 
> anyone has any idea what I am missing here. the gray hairs are becoming more
> and more

Thinking Sphinx paginates its results. You can customise how many
results are returned per page by using the :per_page parameter.

By default the largest number of results that can be returned is 1000,
however you can tweak that using the max_matches option in your
sphinx.yml file.

-- James Healy <jimmy-at-deefa-dot-com>  Fri, 17 Apr 2009 22:55:41 +1000

--~--~---------~--~----~------------~-------~--~----~
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