...8 INFO: reach end of file or error occured, total lines: 3 [XSException] lib/XS.php(1832): Failed to open file(S#513) #0 ../phplib/XS.php(1089): XSServer->execCommand(Array, 250) #1 ../phplib/XS.php(1094): XSIndex->addExdata('????????1??????...') #2 ../phplib/XS.php(1100): XSIndex->openBuffer(0...
...下的方式获取的索引对象: ~~~ [php] require '$prefix/sdk/php/lib/XS.php'; $xs = new XS('demo'); // 建立 XS 对象,项目名称为:demo $index = $xs->index; // 获取 索引对象 ~~~ 索引的维护包括数据修改/更新、数据删除、添加数据等操作,由后面的篇...
...rn} XSDocument[] 匹配的搜索结果文档列表 源码: sdk/php/lib/XSSearch.class.php#L572 (显示) public function search($query = null, $saveHighlight = true){ if ($this->_curDb !== self::LOG_DB && $saveHighlight) { $this->_highlight = $query; } $query = $query === nul...
...ent::afterSubmit] 方法来实现,比如扩展代码为 `$prefix/sdk/php/lib/MyDocument.class.php`。 ~~~ [php] class MyDocument extends XSDocument { public function beforeSubmit(XSIndex $index) { // 在此编写您的代码,如需要中断添加请提前返回 false //...
...ke[2]: *** [xdb.lo] Error 1 make[2]: 离开目录“/usr/local/scws-1.2.1/libscws” Makefile:262: recipe for target `all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: 离开目录“/usr/local/scws-1.2.1” Makefile:192: recipe for target `all' failed make: *** [all] Error 2...
...自己的全文检索。 在此简要介绍以下几个文件: - lib/XS.php 入口文件,所有搜索功能必须包含此文件 - lib/XS.class.php 未合并带注释的入口文件,会自动加载其它 .class.php 文件 - util/RequireCheck.php 命令行运行...
...下的方式获取的索引对象: ~~~ [php] require '$prefix/sdk/php/lib/XS.php'; $xs = new XS('demo'); // 建立 XS 对象,项目名称为:demo $search = $xs->search; // 获取 搜索对象 ~~~ > info: 搜索对象内置了字符集智能转换,如果您使用的字符集和项目默认...
...n} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L85 (显示) public function update(XSDocument $doc, $add = false){ // before submit if ($doc->beforeSubmit($this) === false) { return $this; } // check primary key of document $fi...
...re...... no checking for sun_len in sys/un.h... no checking for event.h of libevent... yes: /usr/local/xunsearch checking for correct libevent version... ok checking for event_init in -levent... yes checking for scws.h of scws... yes: /usr/local/xunsearch checking for scws_new in -lscws... yes check...
.... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking fo...