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