weight 属性 public int $weight; 混合区检索时的相对权重 取值范围: 1~63, title 类型的字段默认为 5, 其它字段默认为 1
...Term() 方法 public void addTerm(string $field, string $term, int $weight=1) $field string 词条所属字段名称 $term string 词条内容, 不超过 255字节 $weight int 词重, 默认为 1 源码: sdk/php/lib/XSDocument.class.php#L236 (显示) public functi...
setCutOff() 方法 public XSSearch setCutOff(int $percent, float $weight=0) $percent int 剔除匹配百分比低于此值的文档, 值范围 0-100 $weight float 剔除权重低于此值的文档, 值范围 0.1-25.5, 0 表示不剔除 {return} XSSearch 返回对象本...
... string(6) "joinid" ["cutlen"]=> int(0) ["weight"]=> int(1) ["type"]=> int(10) ["vno"]=> int(0) ["tokenizer":"XSFieldMeta":private]=> string(4) "full" ["flag":"XSFieldMeta":privat...
...类型 [goods_type] tyep = string tokenizer = full ; 商品权重 [weight] type = numeric ; 配送范围 [scope] type = string index = mixed tokenizer = default ; 配送开始时间 [starttime] type = numeric ; 配送截止时间 [endtime] type = numeric [/php] 不知...
addWeight() 方法 public XSSearch addWeight(string $field, string $term, float $weight=1) $field string 索引词所属的字段 $term string 索引词 $weight float 权重计算缩放比例 {return} XSSearch 返回对象本身以支持串接操作 源码:...
//执行语句 $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 ...
...片ID主键 唯一 type = id index = none tokenizer = none cutlen = 0 weight = 0 phrase = no non_bool = no [title];图片属于哪个图集的题标 非唯一 但每个图集题标都是唯一 type = title;我可以设置为string? index = both;如果type = title 请问我可以设置...
... [word] => 印第安那 [times] => 1 [weight] => 15.979999542236 [attr] => ns ) [1] => Array ( [word] => 印第安那波利斯 [times] => 1 [weight] => 12.680000305176 [attr...
...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...