首页 > 解决方案 > 如何在 vespa 中正确使用字段集?

问题描述

我在运行 vespa-deploy prepare 命令时看到了这样的警告

The matching settings for the fields in fieldset 'default' are inconsistent (explicitly or because of field type). This may lead to recall and ranking issues.

The normalization settings for the fields in fieldset 'default' are inconsistent (explicitly or because of field type). This may lead to recall and ranking issues

The stemming settings for the fields in the fieldset 'default' are inconsistent (explicitly or because of field type). This may lead to recall and ranking issues.

在浏览了一些文档之后,我几乎可以肯定这与字段集有关。是什么导致了这些警告?如何修复?

标签: vespa

解决方案


如果您在字段集中引用的字段在任何匹配、词干或规范化(由字段类型给出的显式或隐式给出)中具有不同的设置,则会得到此信息。查询仅使用一组配置进行处理,而在索引期间在文档方面,每个字段都使用其自己的设置进行处理,因此具有不同的设置可能会导致召回问题。


推荐阅读