Elasticsearch:何时将omit_norms选项设置为false [英] Elasticsearch : when to set omit_norms option as false

查看:1671
本文介绍了Elasticsearch:何时将omit_norms选项设置为false的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在弹性搜索中的 omit_norms 选项的好用例是什么?我在es网站找不到足够的解释。

What is a good use case of the omit_norms option in elasticsearch? I could not find adequate explanation in es website.

推荐答案

规范是一个存储在索引中的值,用于记录,用于评分。使用默认评分算法,它结合了一个 lengthNorm (用于比较长的字段更重的短字段)和任何字段级别的提升。您可以在 Lucene文档

Norms are a value stored in the index alongside a field, and used for scoring. With the default scoring algorithm, this combines a lengthNorm (which serves to weigh short fields more heavily than long ones), and any field-level boosts. You can see more on the details of it in the Lucene documentation.

LengthNorm方面对正确的全文字段大都有帮助。在不需要字段提升的更结构化的字段中,您可以安全地省略它们。

The LengthNorm aspect is mostly helpful on proper full-text fields. On more structured fields in which you don't need a field boost, you can safely omit them.

这篇关于Elasticsearch:何时将omit_norms选项设置为false的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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