搜索

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

21.RE: index的update

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

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

22.为什么我更新的索引会没有数据呢?

更新时间:2012-09-28 10:09 t By zspoplar

...ire_once '/usr/local/xunsearch/sdk/php/lib/XS.php'; $xs = new XS('zl'); $index = $xs->index; $doc = new XSDocument; $conn=mysql_connect("localhost", "root", "111111") or die("Could not connect: " . mysql_error()); mysql_select_db('zi, $conn) or die ('Can\'t use test : ' . mysql_error()); $r...

23.请教一下 addTerm 这样用对吗?

发布时间:2014-07-24 11:07 t By xunsearch飞吧

............;//一维数组 $doc->setFields($data); $index->add($doc); foreach ($arrTag as $kt=>$vt) { $doc -> addTerm('cat', $vt); } dump($doc -> getAddTerms('b_tag_id')); } 是这样写吗? 我查询分类的时候...

24.讯搜怎么连接数据库的,没看到连接数据库啊?

发布时间:2014-04-27 19:04 t By wtwei

...词的 $xs = new XS('question'); $search = $xs->search; $index = $xs->index; $query = '健身'; // 这里的搜索语句很简单,就一个短语 $search->setQuery($query); // 设置搜索语句 $search->addWeight('title', '运动'); // 增加附加条件:提...

25.RE: 不能增加索引,每次列队数加1

发布时间:2012-09-03 15:09 t By deling007

$index->flushIndex(); 或 php Indexer.php --flush -p /var/www/xunsearch/goods.ini 用过后队列数还是没有改变,索引还是没有增加进去,仿佛就在缓存队列中,然后我就把xs重启,队列数据变成0条了,然后我就$index->add($doc),对列数据又增加成一...

26.RE: 不能增加索引,每次列队数加1

发布时间:2012-09-07 15:09 t By hightman

...ild() 关闭它? [quote='deling007' pid='1091' dateline='1346655726'] $index->flushIndex(); 或 php Indexer.php --flush -p /var/www/xunsearch/goods.ini 用过后队列数还是没有改变,索引还是没有增加进去,仿佛就在缓存队列中,然后我就把xs重启,队列数据...

27.RE: 如何按分类搜索啊

更新时间:2012-02-21 16:02 t By flyfeng2

...skey."type:1")->search(); print_r($docs); 已经 [type] type = string index = self 了 但是搜索不到什么 改成 $docs = $search->setQuery($skey)->search(); 就可以 type这个我读出来是 "0" 和"1" 没错[hr] $docs = $search->setQuery($skey.' AND type:1')->search(); 这...

28.RE: 当搜索不设置关键字的时候,type = numeric 的字段会乱码

更新时间:2014-04-11 12:04 t By sundyandy

...meric [enterprise_id] type = numeric [image_url] [img_type] [category] index = mixed [source] [source_icon_url] [from] type = numeric [buy_stat] type = numeric [sell_stat] type = numeric [collect_stat] type = numeric [from_id] type = numeric index = self [heat] type = numeric index = sel...

29.请教php的多表搜索

发布时间:2013-12-20 18:12 t By sundyandy

[php] echo '搜索结果'; $xs = new XS('test1'); $index = $xs->index; $index = setDb('test2'); $search = $xs->searcg; $docs = $search->addDb('test2')->setFuzzy->setQuery($key)->search(); [/php] 请问这种写法有错么?

30.为什么我这样写查不出结果集?

发布时间:2013-03-23 08:03 t By gaochunmeng

...------------ project.name = demo project.default_charset = utf-8 server.index = 8383 server.search = 8384 [goods_id] type = id [cat_ids] index = both [goods_name] type = title index = both [goods_desc] type = body phrase = no index = both tokenizer = default [goods_thumb...

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