搜索

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

1.如何分类搜索

发布时间:2012-02-21 12:02 t By flyfeng2

我索引的时候有个字段 type 0为新闻 1为产品 现在如何 where type=1这样的啊? $docs = $search->setQuery($skey)->addWeight('title', $skey)->search(); 这里不知道怎么写?

2.RE: 字段搜索排序

更新时间:2013-06-08 10:06 t By hpxl

ini文件里面cid字段设置[php][cid] index = self tokenizer = split(,) non_bool = yes [/php] cid:1或者cid:你好,平安,是可以搜到数据的,cid:hello,英文的搜不到任何数据,下面是部分数据。[php] bash-3.2$ php sdk/php/util/Quest.php example cid:你好 ...

3.RE: 如何分类搜索

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

... 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(); 这样的话可以 但是好...

4.RE: 如何分类搜索

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

谢谢,另请问一下 type 这个是否需要索引 我现在这个是没有索引的 [type] type = numeric[hr] 现在我已经把字段改成 [type] type = numeric index = self 这样了 但是我更新所以好像没效果 $index->update($doc); 这样的 是不是要清空后用add ...

5.RE: 如何分类搜索

发布时间:2012-02-22 11:02 t By hightman

你开头的 type:1 前面要有一个空格。

6.RE: 字段搜索排序

更新时间:2013-06-08 13:06 t By hpxl

...前面。介绍3条语句例子,第一条语句包含hello,world的模糊搜索,结果是包含hello,world的排在前面,且只包含hello或者world的也可以搜到,第二条语句只搜索包含hello,world的,结果只包含hello,world。 第三条和第二条结果一样。 此搜索...

7.RE: 如何分类搜索

发布时间:2012-02-21 13:02 t By hightman

addWeight('title', $skey) 作何解释?addWeight 是只针对一个词的。 此外 $skey 发果是关键字你就用 setQuery($skey . " type:1") 这样啊,详见: http://www.xunsearch.com/doc/php/guide/search.query

8.RE: 字段搜索排序

更新时间:2013-06-07 14:06 t By hpxl

ini设置 [php] [example_attr] index = self tokenizer = split(,) non_bool = yes[/php] XS版本 xs-indexd: xunsearch/1.4.7-dev (index server) 查询结果没有任何变化,结果如下: [php]example_attr:jianyue,baise 45 ... jianyue,baise,qianhuang 207 ... zhongshi,hongse,baise 3...

9.RE: 搜索问题

更新时间:2012-10-25 13:10 t By hightman

...全文检索了,大概有几种办法: 1. 你把词典删除就可以搜索单字了。etc/dict.utf8.xdb ... 2. 或者要强制检索单还可以考虑修改C代码的部分,修改 src/import.h #define DEFAULT_SCWS_MULTI 3 把 3 改为 15 然后重新编译并重建...

10.返回的热门搜索词顺序不对

发布时间:2013-07-16 15:07 t By seagg

...这个命令:util/Quest.php --hot=total --limit=20 goods 想查看热门搜索词,但这个排序明显不对呀,而且如果limit=3的话,就只能输出如下顺序前三个的商品,我理解total应该是搜索词频来排序吧。。。 1. 三星 ...

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