简体   繁体   English

狮身人面像:相关性不正确?

[英]Sphinx: incorrect relevance?

I have a project where user can search for electrical goods. 我有一个项目,用户可以在其中搜索电器。 Search is implemented with Sphinx(Note: Sphinx version is 2.0.4 and I can't update it) 搜索是通过Sphinx实现的(注意:Sphinx版本是2.0.4,我无法更新)

For exmaple, we have a query Светильник Е27 (lamp e27). 例如,我们有一个查询Светильник Е27 (lamp e27)。 Results are following 结果如下 在此处输入图片说明

As for me, results are not correct, because I think that results 6-11 are way more relevant than 1-5. 对于我来说,结果是不正确的,因为我认为结果6-11比1-5更相关。

Is it possible to fix this issue? 是否可以解决此问题?

PS Already tried to apply SPH_RANK_WORDCOUNT and SPH_RANK_SPH04 for ranking mode, but results are the same PS已尝试将SPH_RANK_WORDCOUNT和SPH_RANK_SPH04应用于排名模式,但结果相同

Having now clarified in comments, can say 现在在评论中澄清了,可以说

1) Check what fields you have indexed for each document, it might be that Светильник is used a lot in those fields, so boost the ranking. 1)检查为每个文档建立索引的字段,这可能是Светильник在这些字段中使用很多的原因,因此可以提高排名。 Where you seem to want most of the ranking to be on the title. 您似乎希望大多数排名都出现在标题上。 Could omit less relevant fields. 可以省略较少相关的字段。

2) You can also specifically make title play a bigger part in ranking with setFieldWeights() . 2)您也可以使用setFieldWeights()专门使标题在排名中发挥更大的作用。

3) Finally can even specifically only match against title using extended match mode 3)最后甚至可以只使用扩展匹配模式专门匹配标题
@title Светильник Е27 - the words would have to be in the title, so results 1-5 wouldn't even show. @title Светильник Е27单词必须在标题中,因此结果1-5甚至不会显示。

... basically all about manipulating what fields match and used for ranking. ...基本上都是关于操纵哪些字段匹配并用于排名的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM