... $arg string 复合等级参数,默认不指定 源码: sdk/php/lib/XSTokenizer.class.php#L188 (显示) public function __construct($arg = null){ if (self::$_server === null) { $xs = XS::getLastXS(); if ($xs === null) { throw new XSException('An XS instance sh...
...n} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L253 (显示) public function addExdata($data, $check_file = true){ if (strlen($data) < 255 && $check_file && file_exists($data) && ($data = file_get_contents($data)) === false) { t...
...okenizerScws 返回对象本身以支持串接操作 源码: sdk/php/lib/XSTokenizer.class.php#L316 (显示) public function setDuality($yes = true){ $this->_setting['duality'] = new XSCommand(XS_CMD_SEARCH_SCWS_SET, XS_CMD_SCWS_SET_DUALITY, $yes === false ? 0 : 1); ...
...TokenizerXlen, XSTokenizerXstep 版本 1.0.0 源代码 sdk/php/lib/XSTokenizer.class.php 自定义字段词法分析器接口 系统将按照 getTokens 返回的词汇列表对相应的字段建立索引 Public 方法 隐去继承来的方法 名称描述定义于...
...n} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L404 (显示) public function endRebuild(){ if ($this->_rebuild === true) { $this->_rebuild = false; $this->execCommand(array('cmd' => XS_CMD_INDEX_REBUILD, 'arg1' => 1), XS_CMD_OK_DB_R...
... {return} array 返回搜索词组成的数组 源码: sdk/php/lib/XSSearch.class.php#L755 (显示) public function getExpandedQuery($query, $limit = 10){ $ret = array(); $limit = max(1, min(20, intval($limit))); try { $buf = XS::convert($query, 'UTF-8', $this->_charset)...
... {return} array 返回搜索词组成的数组 源码: sdk/php/lib/XSSearch.class.php#L795 (显示) public function getCorrectedQuery($query = null){ $ret = array(); try { if ($query === null) { if ($this->_count > 0 && $this->_count > ceil($this->getDbTotal() * ...
...n} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L439 (显示) public function setDb($name){ $this->execCommand(array('cmd' => XS_CMD_INDEX_SET_DB, 'buf' => $name), XS_CMD_OK_DB_CHANGED); return $this;} 更改存放索引数据的目录 默...
...的目录路径, 可选参数(不得超过255字节). 源码: sdk/php/lib/XSServer.class.php#L251 (显示) public function setProject($name, $home = ''){ if ($name !== $this->_project) { $cmd = array('cmd' => XS_CMD_USE, 'buf' => $name, 'buf1' => $home); $this->execCommand($cmd...
...n} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L283 (显示) public function addSynonym($raw, $synonym){ $raw = strval($raw); $synonym = strval($synonym); if ($raw !== '' && $synonym !== '') { $cmd = new XSCommand(XS_CMD_INDEX_SYNONY...