...} if (!is_object($res)) { $ret = $res; } else { $ret = array(); while ($tmp = $res->fetchArray(SQLITE3_ASSOC)) { $ret[] = $tmp; } $res->finalize(); } return $ret;} 执行 SQL 语句查询
... $flag |= XS_CMD_PARSE_FLAG_AUTO_MULTIWORD_SYNONYMS; } $cmd = array('cmd' => XS_CMD_QUERY_PARSEFLAG, 'arg' => $flag); $this->execCommand($cmd); return $this;} 开启自动同义词搜索功能
...96): XSServer->getRespond() #2 ../lib/XS.php(1880): XSServer->execCommand(Array, 208) #3 Indexer.php(180): XSServer->setTimeout(1000) #4 {main}
...directoy of the project(S#508) #0 lib/XS.php(2067): XSServer->execCommand(Array, 201) #1 lib/XS.php(2028): XSServer->setProject('demo') #2 lib/XS.php(2011): XSServer->open('8383') #3 lib/XS.php(342): XSServer->__construct('8383', Object(XS)) #4 lib/XS.php(249): XS->getIndex() #5 Indexer.php(15...
...ic function getSearch(){ if ($this->_search === null) { $conns = array(); if (!isset($this->_config['server.search'])) { $conns[] = 8384; } else { foreach (explode(';', $this->_config['server.search']) as $conn) { $conn = trim($conn); ...
... has been rebuilding(S#407) #0 ../lib/XS.php(1198): XSServer->execCommand(Array, 257) #1 Indexer.php(241): XSIndex->beginRebuild() #2 {main} [b]这是咋回事?[/b] 2、我又换成--stop-rebuild,可以成功建索引,[b]这是怎么回事?[/b] 但是,在data目录下看到的是...
...level = intval($level); if ($level >= 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 分词粒...
...367): xs_error_handler(8, 'Uninitialized s...', '/www/xunsearch/...', 367, Array) #1 lib/XS.php(421): XS->parseIniData('project.name = ...') #2 lib/XS.php(254): XS->loadIniFile('/www/xunsearch/...') #3 util/Indexer.php(120): XS->__construct('/www/xunsearch/...') #4 {main} [root@localhost php]# ...
...level = intval($level); if ($level >= 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 分词...
...议使用 `add` 这个 `API`。 示范代码如下: ~~~ [php] $data = array( 'pid' => 234, // 此字段为主键,是进行文档替换的唯一标识 'subject' => '测试文档的标题', 'message' => '测试文档的内容部分', 'chrono' => time() ); // 创建文档对象 $...