... 0 && $level < 16) { $cmd = array('cmd' => XS_CMD_SEARCH_SCWS_SET, 'arg1' => XS_CMD_SCWS_SET_MULTI, 'arg2' => $level); $this->execCommand($cmd); } return $this;} 设置当前索引库的分词复合等级 复合等级是 scws 分词粒度控制的一个重要参数, 是长词...
... 0 && $level < 16) { $cmd = array('cmd' => XS_CMD_SEARCH_SCWS_SET, 'arg1' => XS_CMD_SCWS_SET_MULTI, 'arg2' => $level); $this->execCommand($cmd); } return $this;} 设置当前搜索语句的分词复合等级 复合等级是 scws 分词粒度控制的一个重要参数, 是长...
...atus:'ABT', calls:3, tid:0x41ffe940, task:{func:0x40ebb0, cancel:0x40cc90, arg:0xb7d5550, timed:1126}} - thread[1] {status:'ABT', calls:3, tid:0x429ff940, task:{func:0x40ebb0, cancel:0x40cc90, arg:0xb7f8db0, timed:1033}} - thread[2] {status:'ABT', calls:2, tid:0x43400940, task:{func:0x40ebb0, ca...
... execCommand() 方法 public mixed execCommand(mixed $cmd, int $res_arg=0, int $res_cmd=128) $cmd mixed 要提交的指令, 若不是 XSCommand 实例则作为构造函数的第一参数创建对象 $res_arg int 要求的响应参数, 默认为 XS_CMD_NONE 即不检测, 若检...
[XSException] ../../../../usr/local/xunse/sdk/php/lib/XS.php(1464): Unexpected respond in search {CMD:129, ARG:514} 还是该错误 已更新和设置 无法解决
...eginRebuild(){ $this->execCommand(array('cmd' => XS_CMD_INDEX_REBUILD, 'arg1' => 0), XS_CMD_OK_DB_REBUILD); $this->_rebuild = true; return $this;} 开始重建索引 此后所有的索引更新指令将写到临时库, 而不是当前搜索库, 重建完成后调用 endRebuild 实现平...
...setCustomDict($content){ $cmd = array('cmd' => XS_CMD_INDEX_USER_DICT, 'arg1' => 1, 'buf' => $content); $this->execCommand($cmd, XS_CMD_OK_DICT_SAVED);} 设置自定义词典内容
...ublic function setTimeout($sec){ $cmd = array('cmd' => XS_CMD_TIMEOUT, 'arg' => $sec); $this->execCommand($cmd, XS_CMD_OK_TIMEOUT_SET);} 设置服务端超时秒数