diff --git a/src/sngrl/SphinxSearch/SphinxSearch.php b/src/sngrl/SphinxSearch/SphinxSearch.php index 87ff926..7c098a3 100644 --- a/src/sngrl/SphinxSearch/SphinxSearch.php +++ b/src/sngrl/SphinxSearch/SphinxSearch.php @@ -132,6 +132,21 @@ public function setFilterFloatRange($attribute, $min, $max, $exclude = false) return $this; } + /** + * Limit the ID range; only match records if document ID is between $min and $max (inclusive) + * + * @param integer $min minimum document ID + * @param integer $max maximum document ID + * + * @return SphinxClient + * @throws \InvalidArgumentException When $min or $max are invalid + */ + public function setIdRange($min, $max) + { + $this->_connection->setIdRange($min, $max); + return $this; + } + public function setGeoAnchor($attrlat, $attrlong, $lat = null, $long = null) { $this->_connection->setGeoAnchor($attrlat, $attrlong, $lat, $long);