Ah, well Sphinx paginates by default - indeed, you can't turn it off - so by default only 20 results are returned. If you want more than that, :per_page is the setting you want. If you want a different page of results, you'll definitely need to use :page.
Hope that clarification helps. Cheers -- Pat On 24/07/2012, at 6:21 PM, Steve Dierker wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Pat, > > so I the right usage is to perform a search query for each new page you > need while passing in the page parameter? > Because right now its implemented this way in my app: > Request from a live-searchbox via javascript -> perform the query -> > return results -> display all results without pagination in one long list > So I'm guessing I have to increment the results per page parameter a lot > to get everything with one query on one page? > > thanks, > Steve > > On 07/24/2012 06:17 PM, Pat Allan wrote: >> Hi Steve >> >> Just to confirm: are you passing through the page parameter to the > search call? >> >> Project.search '', :match_mode => :extended, :page => params[:page] >> >> Cheers >> > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.12 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iQEcBAEBAgAGBQJQDstsAAoJEPSIhhOKOJppaTEH/R2PQ+BftMkybvi791fFi8Pl > rQVOPaTqAah5R3VxXz/TJ+ty5bl7yXfIyu6u2UBxMne3BGGrGp2MP9+YbRegevl0 > yjx13890tt+BLyQf8fzylnLzOi0Ef4Rkl0elRAH5u8MmQ+SLx2FGiy9wrwW/Imz2 > uzP3LXIxtj3i6/sckEoZ9yg8PeVXsOwGObrFMV7XSDl27HvKYKNDR3Dikasq9ada > B40yoNGg3cF4UqRPJTIm+NOx/KvpyZJ9wcEwdOJa6IJG6vjLwBksM4krReYABF/t > 7l57wQ8AC4SbLwi0Vk2Q1HfJ41R8omTzD2VqHTUx6kkQ5CvJhpC6h3PwhQlrQ5k= > =jsy2 > -----END PGP SIGNATURE----- > > -- > 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. > -- 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.
