...> Array ( [newsid] => XSFieldMeta Object ( [name] => newsid [cutlen] => 0 [weight] => 1 [type] => 10 [vno] => 0 [tokenizer:private] => full [flag:private] => 1 ) [title] => XSFieldMeta Object ( [name] => title [cutlen] => 0 [weight] => 5 [type] => 11 [vno] => 1 [tokenizer:private] => 0 [flag:private...
weight 属性 public int $weight; 混合区检索时的相对权重 取值范围: 1~63, title 类型的字段默认为 5, 其它字段默认为 1
... string(6) "joinid" ["cutlen"]=> int(0) ["weight"]=> int(1) ["type"]=> int(10) ["vno"]=> int(0) ["tokenizer":"XSFieldMeta":private]=> string(4) "full" ["flag":"XSFieldMeta":privat...
...YPE_BODY)) { $str .= "cutlen = " . $this->cutlen . "\n"; } // weight if ($this->weight !== 1 && !($this->weight === 5 && $this->type === self::TYPE_TITLE)) { $str .= "weight = " . $this->weight . "\n"; } // phrase if ($this->flag & self::FLAG_WITH_POSITION) { i...
...不能重复, 由 XSFieldScheme::addField 进行确定 XSFieldMeta weight int 混合区检索时的相对权重 取值范围: 1~63, title 类型的字段默认为 5, 其它字段默认为 1 XSFieldMeta Public 方法 隐去继承来的方法 名称描述定义于 ...
//执行语句 $gSearch->setFuzzy()->setQuery($name)->addWeight('ranking','1')->setLimit($gNum,$startPage)->search(); //执行结果 Xapian::Query((疯:(pos=1) AND_MAYBE GD1))[hr] //输出结果 [0] => XSDocument Object ( [_data:XSDocument:private] => Array ...
[code] project.name = 59n [bid] type = id [title] index = mixed weight = 5 [bc] index = mixed [cc] index = mixed [addtime] type = date tokenizer = none [/code] [php] ./Indexer.php --source=mysql://root:root@localhost/blog --sql="select b.bid,b.content AS bc,b.addtime,b.titl...
... [ccount] => 0 [percent] => 100 [weight] => 0 ) ) [1] => XSDocument Object [/code] 那个sort,time,update_time,都是int型的 配置文件如下 [code] project.name = xuenar_news project.default_charset = utf-8 ser...
...编码的一个汉字为 3 个字节。 ~~~ cutlen = 0 ~~~ #### weight 混合区检索时的概率权重 在混合检索时,可以对标题和内容等不同字段进行权重计算,如果你不想该字段参与计算权重可设为 0 。 通常默认值为 1 ,但 titl...