搜索

大约有 50 项符合查询结果, 库内数据总量为 3,513 项。 (搜索耗时:0.0073秒)

11.全文检索 tokenizer = full 时,无法查询

发布时间:2013-09-04 16:09 t By hongjh

1. 相关ini配置: [goods_id] type = id index = self [goods_name] type = title index = both [goods_sn] index = both tokenizer = full 2. 导入相关数据 require_once '/usr/local/xunsearch/sdk/php/lib/XS.php'; $xs = new XS('goods'); $data = array( 'goods_id' => 112, ...

12.清空索引

...和搜索数据库发生了较大的偏差。 > tip: 在我们附带的[Indexer 索引管理工具](util.indexer)中提供了 `--clean` > 选项用于清空项目的索引数据库,用起来更简洁。 清空数据很简单,直接调用 [XSIndex::clean] 即可,代码如下: ~~~ [php] //...

13.初次使用XS,关于平滑重建问题请教!

发布时间:2014-12-08 18:12 t By melody

A、/util/Indexer.php --rebuild --source --sql="SELECT" --project=demo B、$index->beginRebuild(); foreach ($data as $k => $v) { $doc = new XSDocument; $doc->setFields($v); $index->update($doc); } $index->endReb...

14.XSDocument 文档

...为 GBK // 然后进行一系列赋值操作 // 提交到索引中 $xs->index->add($doc); ~~~ 如果您希望在 `XSDocument` 提交到索引前、后进行一系列必要的操作,您可以对 `XSDocument` 进行扩展, 重写 [XSDocument::beforeSubmit] 和 [XSDocument::afterSubmit] 方法...

15.如何为索引,进行增量式更新??

发布时间:2013-09-08 21:09 t By hongjh

...comment as c on g.gid = c.gid where ..... group by g.gid 然后,用$index->add($doc), 一条条加入 2> 更新索引时,我又重新跑一次sql, select * from goods as g left join order as o on g.gid = o.gid left join comment as c on g.gid = c.gid where ..... group by g.gid 获...

16.XSIndex

XSIndex All Packages | 属性 | 方法(函数) 包 XS 继承关系 class XSIndex » XSServer » XSComponent 版本 1.0.0 源代码 sdk/php/lib/XSIndex.class.php XS 索引管理 添加/删除/修改索引数据 Public 属性 隐去继承来的属性 ...

17.RE: index的update

发布时间:2014-04-30 17:04 t By zzjin

[quote='hina' pid='7464' dateline='1398851554'] 感觉XUNSEARCH资料很少啊 [/quote] 是呢...我是看了update的源码才确认的update操作会删除再重新add 现在我只想更新doc下面的某一个field....

18.更新、修改文档

在 `Xunsearch PHP-SDK` 中,更新、修改文档和[添加文档](index.add)的做法非常的类似, 只不过调用的是 [XSIndex::update],并且在内部处理上有所区别。 如果索引数据库中已存在主键值相同的文档,那么相当于先删除原有的文档,...

19.使用讯搜搭建phpwind的全文检索

更新时间:2012-05-18 09:05 t By myoula

...目名.ini project.name = 项目名 project.default_charset = UTF-8 server.index = 192.168.0.250:8383 server.search = 192.168.0.250:8384 [tid] type = id [fid] index = self tokenizer = full [author] [authorid] index = self tokenizer = full [postdate] tokenizer = full [subject] type = title [co...

20.[BUG] 文档更新 开启 openBuffer 报错

更新时间:2011-10-27 16:10 t By vist2007

...'date'=>102 ); $doc = new XSDocument($array, 'utf-8'); $xs->index->openBuffer(); $xs->index->add($doc); $xs->index->closeBuffer(); 报错...... Uncaught [XSErrorException] ../../../..(1098): file_get_contents(�) [function.file-get-contents]: failed to open stream: Perm...

12345
  • 时间不限
  • 按相关性排序