Hi Dmitry

I did respond on Twitter, but I offered the same thing Barry suggested on Stack 
Overflow (which is what I would have posted there too, if he didn't beat me to 
it) - the :page and :per_page options are what most people use.

However, you can also supply both :offset and :limit options to a search call, 
so that'll do the job in a more direct sense too.

Also: SetLimits is a function the PHP Sphinx API, and actually interacts with 
Sphinx's old binary protocol, whereas TS v3 uses the SphinxQL protocol - so it 
doesn't quite map across directly, but the :offset and :limit options will 
certainly drive Sphinx to behave in the same way.

Cheers

-- 
Pat

On 13 May 2014, at 3:06 am, Dmitry Zutikov <[email protected]> wrote:

> Hi all,
> 
> I've been digging through ThinkingSphinx docs looking for a way to pass an 
> offset into a query. Sphinx itself supports this functionality
> function SetLimits ( $offset, $limit, $max_matches=1000, $cutoff=0 )
> but ThinkingSphinx docs omit it. If TS does not support it, is there a 
> workaround? Perhaps using SphinxQL?
> I originally posted it on StackOverflow 
> (http://stackoverflow.com/questions/23571877/does-thinkingsphinx-support-offsetting-search-results).
>  Tried reaching out to Pat on Twitter but to no result.
> Thanks in advance. 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/thinking-sphinx.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.

Reply via email to