Limit the ID range; only match records if document ID is between $min and $max (inclusive)
public setIdRange ( integer $min, integer $max ) : |
||
$min | integer | minimum document ID |
$max | integer | maximum document ID |
리턴 |
public function testFilterIdRange() { $sphinx = new SphinxClient(); $sphinx->setIdRange(2, 4); $results = $sphinx->query('bb'); $this->assertEquals(array_keys($results['matches']), array('4', '2', '3')); }
/** * {@inheritdoc} */ public function setIdRange($min, $max) { return $this->proxy->setIdRange($min, $max); }