execCommand() 方法 public mixed execCommand(mixed $cmd, int $res_arg=0, int $res_cmd=128) $cmd mixed 要提交的指令, 若不是 XSCommand 实例则作为构造函数的第一参数创建对象 $res_arg int 要求的响应参数, 默认为 XS_CMD_NONE 即不检测, 若检...
...($sec){ $cmd = array('cmd' => XS_CMD_TIMEOUT, 'arg' => $sec); $this->execCommand($cmd, XS_CMD_OK_TIMEOUT_SET);} 设置服务端超时秒数
...array('cmd' => XS_CMD_USE, 'buf' => $name, 'buf1' => $home); $this->execCommand($cmd, XS_CMD_OK_PROJECT); $this->_project = $name; }} 设置当前项目
...>getRespond() #2 /usr/local/xunsearch/sdk/php/lib/XS.php(1088): XSServer->execCommand(Array, 201, 128) #3 /usr/local/xunsearch/sdk/php/lib/XS.php(2343): XSIndex->execCommand(Array, 201) #4 /usr/local/xunsearch/sdk/php/lib/XS.php(2296): XSServer->setProject('test') #5 /usr/local/xunsearch/sdk/php...
...词 XSIndex endRebuild() 完成并关闭重建索引 XSIndex execCommand() 执行服务端指令并获取返回值 XSIndex flushIndex() 强制刷新服务端的当前库的索引缓存 XSIndex flushLogging() 强制刷新服务端当前项目的搜索日志 XSIndex ...
...1 lib/XS.php(2065): XSServer->getRespond() #2 lib/XS.php(2042): XSServer->execCommand(Array, 201) #3 lib/XS.php(2003): XSServer->setProject('demo') #4 lib/XS.php(1986): XSServer->open('8383') #5 lib/XS.php(326): XSServer->__construct('8383', Object(XS)) #6 lib/XS.php(240): XS->getIndex() #7 In...
...->getRespond() #2 /usr/local/xunsearch/sdk/php/lib/XS.php(1088): XSServer->execCommand(Array, 201, 128) #3 /usr/local/xunsearch/sdk/php/lib/XS.php(2343): XSIndex->execCommand(Array, 201) #4 /usr/local/xunsearch/sdk/php/lib/XS.php(2296): XSServer->setProject('test') #5 /usr/local/xunsearch/sdk/php/li...
...术方法 __unset XSComponent close() 关闭连接 XSServer execCommand() 执行服务端指令并获取返回值 XSServer getConnString() Returns 连接字符串 XSServer getProject() 获取当前项目名称 XSServer getRespond() 从服务器读取响应指...
...lib/XS.php(2231): XSServer->getRespond() 2 ../lib/XS.php(2208): XSServer->execCommand(Array, 201) 3 ../lib/XS.php(2169): XSServer->setProject('cms_51cto') 4 ../lib/XS.php(1312): XSServer->open(8384) 5 ../lib/XS.php(2152): XSSearch->open(8384) 6 ../lib/XS.php(356): XSServer->__construct(8384, Ob...
...lib/XS.php(2231): XSServer->getRespond() 2 ../lib/XS.php(2208): XSServer->execCommand(Array, 201) 3 ../lib/XS.php(2169): XSServer->setProject('cms_51cto') 4 ../lib/XS.php(1312): XSServer->open(8384) 5 ../lib/XS.php(2152): XSSearch->open(8384) 6 ../lib/XS.php(356): XSServer->__construct(8384, Ob...