I feel so stupid... 1 minute after posting I realized that I just had
to increase per_page to a higher number just like you've said.

Oh well, gotta love stupidity :)

On May 26, 3:09 pm, Pat Allan <[email protected]> wrote:
> If there's less than 1000 records, then it's easy - change :per_page  
> to 1000.
>
> If there's more, you'll need to do a few things:
> * Add max_matches: 100000 (or whatever maximum you want) to the  
> relevant environment in config/sphinx.yml
> * Search with :per_pages set to that maximum, *and* :max_matches set  
> to it as well.
>
> Don't forget to stop Sphinx, re-index and restart after making that  
> config change :)
>
> --
> Pat
>
> On 25/05/2009, at 9:58 PM, SebastianJ wrote:
>
>
>
> > Hey.
>
> > I've started to implement functionality to export search results from
> > Sphinx to Excel. The problem right now is that I need to export all
> > the matching entries and just not the entries on page 1.
>
> > I invoke ts like this:
> >     �...@entities = classified_entity.search(query,
> >                                                    :order =>
> > sort_field,
> >                                                    :sort_mode =>
> > sort_order,
> >                                                    :page => params
> > [:page],
> >                                                    :per_page => 10,
> >                                                    :retry_stale =>
> > true,
> >                                                    :match_mode
> > => :extended
> >                                                   )
>
> > I'd like to loop through all the pages and collect all the items per
> > page into an array that holds all matching entries. I looked at the
> > source for the collection (http://github.com/freelancing-god/thinking-
> > sphinx/blob/cd9cf7bd1dea7b097b8e7236ca5617f68dc0ab49/lib/
> > thinking_sphinx/collection.rb) class but I can't figure out how to do
> > this...
>
> > Anyone keen on helping out? :)
>
>
--~--~---------~--~----~------------~-------~--~----~
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