D
D
Drum Kit2015-05-08 14:31:06
Sphinx
Drum Kit, 2015-05-08 14:31:06

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

1 answer(s)
F
Fortop, 2015-05-08
@arayik


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.)

Well, to check that you really have more than twenty results ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question