【发布时间】:2015-09-15 22:08:11
【问题描述】:
The documentation 是稀疏的,并不完全有用。所以说我的属性有以下字段:
{
"my_index": {
"mappings": {
"my_type": {
"my_attribute": {
"mapping": {
"my_attribute": {
"type": "string",
"analyzer": "my_analyzer",
"fields": {
"lowercased": {
"type": "string"
},
"raw": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
}
}
}
}
my_analyzer 小写标记(除了其他东西)。
所以现在我想知道以下陈述是否属实:
-
my_analyzer不会应用于raw,因为正如其名称所暗示的那样,not_analyzed索引没有任何分析器。 -
my_attribute和my_attribute.lowercased完全相同,因此字段my_attribute.lowercased是多余的
【问题讨论】:
-
你的陈述对于 1 和 2 都是正确的
标签: elasticsearch