搜索

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

1.请问: $index->add($doc)能调试的不

更新时间:2011-12-09 18:12 t By aecol

请问: $index->add($doc)能调试的不,我在自己的代码加上这个,但search的时候搜索不到新add的数据 文档上写的返回的index对象,不知道能不能调试啊[hr] 按大大指示,加上了 $index->flush(); 还是没效果,这个add方法有返回提示吗,API上...

2.XSIndex::update

update() 方法 public XSIndex update(XSDocument $doc, bool $add=false) $doc XSDocument $add bool 是否为新增文档, 已有数据中不存在同一主键的其它数据 {return} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class....

3.RE: 请问: $index->add($doc)能调试的不

发布时间:2011-12-11 20:12 t By hightman

那也要过一小段时间才能生效。

4.RE: 平滑重建索引问题

发布时间:2012-02-10 10:02 t By hpxl

不对呢,仔细看一下这里,http://www.xunsearch.com/doc/php/guide/index.rebuild // 这里是开始,所有的索引操作都放在里面,update操作会先执行删除操作,然后执行add操作,update也可以的 $index->beginRebuild(); $data = array(); $doc = new XSDocument; $doc->...

5.迅搜的冲突问题

发布时间:2014-05-16 03:05 t By qiuxis

...作方式来解决一些循环的数据。 以下是官方提供的: $index->openBuffer(); // 开启缓冲区,默认 4MB,如 $index->openBuffer(8) 则表示 8MB // 在此进行批量的文档添加、修改、删除操作 ... $index->add($doc); ... $index->del($doc); ... $index->up...

6.使用索引缓冲区

...缓冲区的默认 大小为 `4MB`,如需修改请传入数字作为 [XSIndex::openBuffer] 的参数。 ~~~ [php] $index->openBuffer(); // 开启缓冲区,默认 4MB,如 $index->openBuffer(8) 则表示 8MB // 在此进行批量的文档添加、修改、删除操作 ... $index->add($doc); .....

7.XSDocument 文档

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

8.全文检索 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, ...

9.RE: 平滑重建索引问题

更新时间:2012-02-10 10:02 t By a114708367

哦这样啊 谢谢了,祝愿xs 越来越好,顶了。[hr] 这样子对否? $doc = new XSDocument; $doc->setFields($data); $index->beginRebuild(); $index->add($doc);//如果写update 行不行? $index->endRebuild();

10.index的update

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

index的update现在是删除现有的整个document,然后替换新传入的doc,有没有办法只更新doc下面的某一个field的方式呢?

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