...rg); if ($this->arg < 1 || $this->arg > 255) { throw new XSException('Invalid argument for ' . __CLASS__ . ': ' . $arg); } }} getTokens() 方法 public void getTokens($value, $doc=NULL) $value $doc 源码: sdk/php/lib/XSTokenizer.cla...
...rg); if ($this->arg < 1 || $this->arg > 255) { throw new XSException('Invalid argument for ' . __CLASS__ . ': ' . $arg); } }} getTokens() 方法 public void getTokens($value, $doc=NULL) $value $doc 源码: sdk/php/lib/XSTokenizer.cla...
... } if (!class_exists($name)) { throw new XSException('Undefined custom tokenizer `' . $this->tokenizer . '\' for field `' . $this->name . '\''); } } $obj = $arg === null ? new $name : new $name($arg); if (!$obj instanceof XSTokenizer)...
...getExpandedQuery方法时出现下面的错误: Fatal error: Uncaught [XSException] ../../../../search/sdk/php/lib/XS.php(2094): Couldn't stat 'data/dream/log_db'(S#515) thrown in /search/sdk/php/lib/XS.php on line 2094 请问是怎么回事呢?谢谢[hr] [root@localhost php]# util/Quest.ph...
...nv($from, $to . '//TRANSLIT', $data); } else { throw new XSException('Cann\'t find the mbstring or iconv extension to convert encoding'); } } return $data;} 字符集转换 要求安装有 mbstring, iconv 中的一种 getAllFields() 方法 public XSFieldM...
...! [root@localhost xunsearch]# util/Indexer.php --source=csv --clean test [XSException] ../../../../usr/local/xunsearch/sdk/php/lib/XS.php(2448): Failed to recv the data from server completely (SIZE:0/8, REASON:closed) #0 /usr/local/xunsearch/sdk/php/lib/XS.php(2385): XSServer->read(8) #1 /usr/local...
...ame])) { return $this->_meta[$name]; } } throw new XSException('Call to undefined method `' . get_class($this) . '::' . $name . '()\'');} 魔术方法 __call 实现以函数调用访问搜索结果元数据, 支持: docid, rank, percent, weight, ccount __construct() ...
...oMap[$name])) { if ($throw === true) { throw new XSException('Not exists field with vno: `' . $name . '\''); } return false; } $name = $this->_vnoMap[$name]; } if (!isset($this->_fields[$name])) { if ($throw === true) { ...
...$data) && ($data = file_get_contents($data)) === false) { throw new XSException('Failed to read exdata from file'); } // try to check allowed (BUG: check the first cmd only): // XS_CMD_IMPORT_HEADER, XS_CMD_INDEX_REQUEST, XS_CMD_INDEX_REMOVE, XS_CMD_INDEX_EXDATA $first = ord(subst...
...rg); if ($this->arg < 1 || $this->arg > 255) { throw new XSException('Invalid argument for ' . __CLASS__ . ': ' . $arg); } }}