Sphinx problem with max_matches?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
15 views
In sphinx.conf max_matches=100000

Set via API $cl->SetLimits(0,3000);

But $cl->Query() with any query will never return more than 1000 objects.

What's wrong, why max_matches and SetLimits do not remove the default constraint?
by | 15 views

2 Answers

0 like 0 dislike
Note that there are two places where max_matches limit is enforced. Per-query limit is controlled by this API call, but there also is per-server limit controlled by max_matches setting in the config file.
\r
Thus, it is not enough for the request to specify in the config, you must specify max_matches as the third parameter when calling the SetLimits through API.
For example in your case would be $cl->SetLimits(0,3000,100000);
by
0 like 0 dislike
And how many found? total_founds?
by

Related questions

0 like 0 dislike
1 answer
asked Jun 6, 2019 by ruslanyugov
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
0 comments
26,935 users