有没有办法返回field_weights值?

时间:2017-03-29 00:20:22

标签: sphinx

当我运行SphinxQL查询时,我可以请求Weight()

Select ID,Weight(),Title from Index_A where MATCH('@(Title,Description) London')

当我向查询添加field_weights时,返回Sphinx为每个匹配分配的权重:

Select ID,Weight(),Title from Index_A where MATCH('@(Title,Description) London') OPTION field_weights=(Title=1000)

我无法请求列显示field_weights。我试过Select field_weights()Select field_weights(Title)无济于事,我想知道这是如何得分的。

1 个答案:

答案 0 :(得分:0)

我不完全确定,但如果可用,则会通过PACKEDFACTORS()函数

http://sphinxsearch.com/docs/current/misc-functions.html

相关问题