Lucene/Lucene.NET - Document.SetBoost() 值? [英] Lucene / Lucene.NET - Document.SetBoost() values?

查看:27
本文介绍了Lucene/Lucene.NET - Document.SetBoost() 值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道它需要浮点数,但结果中不同级别的提升有哪些典型值?

I know it takes in a float, but what are some typical values for various levels of boosting within a result?

例如:

如果我想将文档的权重提高 10%,那么我应该将其设置为 1.1?20% 然后 1.2?

If I wanted to boost a document's weighting by 10% then I should set it 1.1? For 20% then 1.2?

如果我开始将提升设置为 75.0 之类的值会怎样?还是 500.0?

What happens if I start setting boosts to values like 75.0? or 500.0?

固定格式

推荐答案

请看Lucene 相似性文档 用于公式.原则上,在所有其他因素相同的情况下,将文档的提升设置为 1.1 确实会使其得分比提升为 1.0 的相同文档高 10%.如果您有一组在搜索中本质上应该首选的文档,这可能是一个好主意.请注意,文档提升是索引时间属性,因此无法在不重新索引的情况下更改文档的提升.评分中还有其他重要因素 - 包括学期匹配分数、规范等.请参阅调试搜索中的相关性问题 了解详情.

Please see the Lucene Similarity Documentation for the formula. In principle, all other factors being equal, setting a document's boost to 1.1 will indeed give it a score that is 10% higher as compared to an identical document with a boost of 1.0. If you have a set of documents that should be intrinsically preferred in searches, this may be a good idea. Note that document boost is an indexing-time attribute, making it impossible to change the document's boost without reindexing it. There are other important factors in scoring - including term match scores, norms etc. See Debugging Relevance Issues in Search for details.

这篇关于Lucene/Lucene.NET - Document.SetBoost() 值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆