【发布时间】:2015-07-20 22:59:33
【问题描述】:
如何使用嵌套字段创建映射,其中嵌套字段未分析?
我无法确定正确的映射,请参阅下面的示例。
通过标准标记器处理被索引到taxonomyHMG.0、taxonomyHMG.1、taxonomyHMG.2等字段的数据(可以通过运行方面查询进行测试)。
尽管所有嵌套字段都设置为“not_analyzed”,但仍会发生这种情况。我正在运行 ES 1.4.5。我错过了什么?
"taxonomyHMG": {
"properties": {
"level0": {
"type": "string","index": "not_analyzed"
},
"level1": {
"type": "string","index": "not_analyzed"
},
"level2": {
"type": "string","index": "not_analyzed"
},
"level3": {
"type": "string","index": "not_analyzed"
},
"level4": {
"type": "string","index": "not_analyzed"
},
"level5": {
"type": "string","index": "not_analyzed"
}
}
更新 7.20.15 都解决了。问题是由简单的错字引起的:-)
谢谢安德烈
【问题讨论】:
-
您正在针对新索引进行测试?
-
您能否向我们展示您正在编制索引的示例文档?
标签: elasticsearch