搜索

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

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.字段值分面搜索

字段值分面搜索 分面搜索在英文中通常表述为 `Facets Search`,被检索的数据通具有多维度属性。 例如一本书包含主题、作者、年代等,而分面搜索是指通过事物的这些属性不断筛选、 过滤搜索结果的方法,可以将...

10.编写第一个配置文件

...L 表结构 ---------------------------- 由于我们只是对贴子进行搜索,所以只需要关心它的贴子表即可,表结构如下: ~~~ [sql] -- -- 表的结构 `cdb_posts` -- CREATE TABLE `cdb_posts` ( `pid` int(10) unsigned NOT NULL auto_increment, `fid` smallint(6) unsigned...

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