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

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

问题描述

elasticsearch 中 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天全站免登陆