...信息: project.name = goods project.default_charset = utf-8 server.index = 8383 server.search = 8384 [id] type = id [price] type = numeric 查询操作: hpxl@debian:~/test$ php sdk/php/util/Quest.php goods id:3122 --show-query [XSException] sdk/php/lib/XS.php(2455): Failed to ...
...18): XSServer->__construct('8383', Object(XS)) #3 lib/XS.php(232): XS->getIndex() #4 Indexer.php(121): XSComponent->__get('index') 请问这个问题该如何解决,谢谢
... `ok` 的记录。 管理同义词库 ------------ 您可以通过 [XSIndex::addSynonym] 和 [XSIndex::delSynonym] 来添加和删除同义词记录。 多次调用这两个接口函数的时候支持使用[索引缓冲区](index.buffer)来提高效率。 参数 `$raw` 是字符串,表示记...
util/RequiredCheck.php测试已通过 这是问题情况: # util/Indexer.php --source=csv --clean demo X-Powered-By: PHP/5.2.0 Content-type: text/html 清空现有索引数据 ... 初始化数据源 ... csv [XSException] /XSDataSource.class.php(376): Can not open input file: '' #0 XSData...
... XS 对象 $xs = new XS($project_name); //获取 索引对象 $index = $xs->index; $doc = new XSDocument; $result = array(); $result = $this->temp_db->get_where($table, array($table_key_array[$table] => $id))->row_array(); if(empty($result)){ $doc->setFields($result); $...
addExdata() 方法 public XSIndex addExdata(string $data, bool $check_file=true) $data string 要提交的命令封包数据, 或存储命令封包的文件路径, 编码必须已经是 UTF-8 $check_file bool 是否检测参数为文件的情况 {return} XSIndex 返回...
ini文件是这样配置的 [php] [active] index = self tokenizer = none [/php] 这个active 只保存1或者0 可是 搜索 [php] $search->setQuery("active:1")->search(); $search->setQuery('active:"1"')->search() [/php] 这样搜不出来啊 加上双引号也搜不出来 是不是这个有最短...
...--------------+ 2. ini配置文件如下: [id] type = id [name] index = both [phonenum] index = both 3. 使用Indexer.php工具导入数据成功: 清空现有索引数据 ... 初始化数据源 ... mysql://xxx:xxx@192.168.56.101/contact 开始批量导入数据 (请直接输...
[root@localhost ~]# /data/server/php/bin/php /data/web/sftest/php/util/Indexer.php --rebuild --source=mysql://root:123456@localhost/test --sql="SELECT * FROM documents" --project=demo 开始重建索引 ... 初始化数据源 ... mysql://root:123456@localhost/test [XSException] [color=#FF0000]...
...etRespond() #2 ../lib/XS.php(1880): XSServer->execCommand(Array, 208) #3 Indexer.php(180): XSServer->setTimeout(1000) #4 {main}