【发布时间】:2010-10-07 04:10:52
【问题描述】:
嘿,所以我想知道 Sphinx 是否有可能在其结果中对文档的某些字段进行加权。例如,如果我搜索了the rock show,是否可以将 sphinx 配置为将名为 the rock show 的歌曲优先于歌词中包含 the rock show 的歌曲?
【问题讨论】:
标签: search full-text-search sphinx
嘿,所以我想知道 Sphinx 是否有可能在其结果中对文档的某些字段进行加权。例如,如果我搜索了the rock show,是否可以将 sphinx 配置为将名为 the rock show 的歌曲优先于歌词中包含 the rock show 的歌曲?
【问题讨论】:
标签: search full-text-search sphinx
请参阅 SetFieldWeights
http://sphinxsearch.com/docs/current.html#api-func-setfieldweights
【讨论】:
这个问题已经很老了,但这里有一篇来自 Sphinx 博客的关于 Sphinx 匹配和加权的好文章:
【讨论】: