Reputation: 13948
So I use sphinx search server (0.99) with Sphinx PHP PECL extension. I've configured searchd to pull data from my mysql database table. There is 419 records in that table. code:
$s = new \SphinxClient;
$s->setServer("localhost", 9312);
$s->setMatchMode(SPH_MATCH_ANY);
$s->setMaxQueryTime(3);
$result = $s->query( '', 'my_index' );
die( print_r( $result ) );
So - total in the result says correct number: 419, but result "matches" only contain 20 or so numbers. I expected that "matches" would contain 419 primary key numbers.... unless I'm misunderstansding how sphinx works....
any help?
Upvotes: 0
Views: 931
Reputation: 21091
See the documentation for SetLimits, note the 'defaults' (the second paragraph is the most important)
http://sphinxsearch.com/docs/current.html#api-func-setlimits
Upvotes: 2