Answer the question
In order to leave comments, you need to log in
How to get more than 20 results in sphinx?
Sphinx works well for me but there is a problem it gives only 20 results and I need everything, how to solve
that problem? I tried $cl->SetLimits(0,1000) for example noo function doesn't work.
Answer the question
In order to leave comments, you need to log in
How do I pull more than 1000 matches from Sphinx?
There are two places where the default limit of at most 1000 matches per query is imposed.
First, on the server side, you have to change max_matches settings in sphinx.conf, and restart the searchd. (With 0.9.9 and above, you can simply reload the config file using SIGHUP.)
Second, there's also a 3rd argument to SetLimits() API call that also defaults to 1000 and must be raised. (With SphinxSE, use "maxmatches" option.)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question