diff --git a/binding/php/XdbSearcher.class.php b/binding/php/XdbSearcher.class.php index d5292d7..6ebd375 100644 --- a/binding/php/XdbSearcher.class.php +++ b/binding/php/XdbSearcher.class.php @@ -108,6 +108,9 @@ class XdbSearcher if ($this->vectorIndex != null) { $sPtr = self::getLong($this->vectorIndex, $idx); $ePtr = self::getLong($this->vectorIndex, $idx + 4); + } else if ($this->contentBuff != null) { + $sPtr = self::getLong($this->contentBuff, self::HeaderInfoLength + $idx); + $ePtr = self::getLong($this->contentBuff, self::HeaderInfoLength + $idx + 4); } else { // read the vector index block $buff = $this->read(self::HeaderInfoLength + $idx, 8);