setIdRange() public method

Limit the ID range; only match records if document ID is between $min and $max (inclusive)
public setIdRange ( integer $min, integer $max ) : SphinxClient
$min integer minimum document ID
$max integer maximum document ID
return SphinxClient
Exemplo n.º 1
0
 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);
 }