搜索

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

1.XSFieldMeta.weight

weight 属性 public int $weight; 混合区检索时的相对权重 取值范围: 1~63, title 类型的字段默认为 5, 其它字段默认为 1

2.XSDocument::addTerm

...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...

3.XSSearch::setCutOff

setCutOff() 方法 public XSSearch setCutOff(int $percent, float $weight=0) $percent int 剔除匹配百分比低于此值的文档, 值范围 0-100 $weight float 剔除权重低于此值的文档, 值范围 0.1-25.5, 0 表示不剔除 {return} XSSearch 返回对象本...

4.XSSearch::addWeight

addWeight() 方法 public XSSearch addWeight(string $field, string $term, float $weight=1) $field string 索引词所属的字段 $term string 索引词 $weight float 权重计算缩放比例 {return} XSSearch 返回对象本身以支持串接操作 源码:...

5.XSFieldMeta::toConfig

...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...

6.XSIndex::update

...er()) { // internal tokenizer $wdf = $field->weight | ($field->withPos() ? XS_CMD_INDEX_FLAG_WITHPOS : 0); if ($field->hasIndexMixed()) { $cmds[] = new XSCommand(XS_CMD_DOC_INDEX, $wdf, XSFieldScheme::MIXED_VNO, $value); ...

7.XSFieldMeta::fromConfig

... = self::FLAG_INDEX_BOTH | self::FLAG_WITH_POSITION; $this->weight = 5; } elseif ($this->type == self::TYPE_BODY) { $this->vno = XSFieldScheme::MIXED_VNO; $this->flag = self::FLAG_INDEX_SELF | self::FLAG_WITH_POSITION; $this->cut...

8.XSDocument::getAddTerms

...; } $terms = array(); foreach ($this->_terms[$field] as $term => $weight) { $term = $this->autoConvert($term); $terms[$term] = $weight; } return $terms;} 获取字段的附加索引词列表 (仅限索引文档)

9.XSFieldMeta

...不能重复, 由 XSFieldScheme::addField 进行确定 XSFieldMeta weight int 混合区检索时的相对权重 取值范围: 1~63, title 类型的字段默认为 5, 其它字段默认为 1 XSFieldMeta Public 方法 隐去继承来的方法 名称描述定义于 ...

10.XSDocument

...以函数调用访问搜索结果元数据, 支持: docid, rank, percent, weight, ccount __construct() 方法 public void __construct(mixed $p=NULL, string $d=NULL) $p mixed 字符串表示索引文档的编码或搜索结果文档的 meta 数据, 数组则表示或索引文档的...

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