...e 0 in C:\wamp\www\pscws4\etc\xdb.class.php on line 613 Notice: Undefined index: klen in C:\wamp\www\pscws4\etc\xdb.class.php on line 633 Notice: Undefined index: klen in C:\wamp\www\pscws4\etc\xdb.class.php on line 634 Warning: fread() [function.fread]: Length parameter must be greater than 0 in...
...() 判断当前字段是否采用自定义分词器 XSFieldMeta hasIndex() 判断当前字段是否需要索引 XSFieldMeta hasIndexMixed() 判断当前字段是否需要在混合区索引 XSFieldMeta hasIndexSelf() 判断当前字段是否需要在字段区索引 XSField...
XSIndex All Packages | 属性 | 方法(函数) 包 XS 继承关系 class XSIndex » XSServer » XSComponent 版本 1.0.0 源代码 sdk/php/lib/XSIndex.class.php XS 索引管理 添加/删除/修改索引数据 Public 属性 隐去继承来的属性 ...
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...
[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]...
...段 XS fieldTitle XSFieldMeta 获取当前标题字段 XS index XSIndex 获取索引操作对象 XS name string 获取当前项目名称 XS scheme XSFieldScheme 获取当前在用的字段方案 XS scwsServer XSServer 创建 scws 分词连接 XS ...
afterSubmit() 方法 public void afterSubmit(XSIndex $index) $index XSIndex 索引操作对象 源码: sdk/php/lib/XSDocument.class.php#L344 (显示) public function afterSubmit($index){ } 重写接口, 在文档成功提交到索引服务器后调用 继承此类进行重...
getIndex() 方法 public XSIndex getIndex() {return} XSIndex 索引操作对象 源码: sdk/php/lib/XS.class.php#L406 (显示) public function getIndex(){ if ($this->_index === null) { $adds = array(); $conn = isset($this->_config['server.index']) ? $this->_confi...
beforeSubmit() 方法 public bool beforeSubmit(XSIndex $index) $index XSIndex 索引操作对象 {return} bool 默认返回 true, 若返回 false 将阻止该文档提交到索引服务器 源码: sdk/php/lib/XSDocument.class.php#L331 (显示) public function beforeSubmit...
XSIndex 索引管理 通过 [XSIndex] 对象实现索引数据库的增、删、改等相关操作。实现使用过程中并不需要 自行创建该对象,而是直接访问 [XS::index] 即可。 ~~~ [php] require '$prefix/sdk/php/lib/XS.php'; $xs = new XS('demo'); $index = $xs...