如果将文档的映射设置为分析,则对文档进行评分,然后在查询中返回相关结果。文档ID(_id)也有评分吗?
我需要在已分析的文档上执行精确的ID匹配,并且无法将类型更改为未分析,因为我无法转储该索引中已经存在的数据。
使用特定ID进行查询是否会返回完全匹配的内容?
最佳答案
在 Elasticsearch 中不会对文档ID进行评分。
因此,index/type/id
将使用给定的id
提取确切的文档
从文档:
Each document indexed is associated with a _type (see the section called “Mapping Typesedit”) and an _id. The _id field is not indexed.
关于elasticsearch - 是否对ElasticSearch文档ID进行评分?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42267879/