1
我創造這樣在elasticsearch中,在映射創建過程中完全定義映射有多重要?
"institution" : {
"properties" : {
"InstitutionCode" : {
"type" : "string",
"store" : "yes"
},
"InstitutionID" : {
"type" : "integer",
"store" : "yes"
},
"Name" : {
"type" : "string",
"store" : "yes"
}
}
}
但是一個映射,當我進行實際的索引操作的機構,我加入了一個別名屬性(每單位0或多個別名)
"institution" : {
"properties" : {
"Aliases" : {
"dynamic" : "true",
"properties" : {
"InstitutionAlias" : {
"type" : "string"
},
"InstitutionAliasTypeID" : {
"type" : "long"
}
}
},
"InstitutionCode" : {
"type" : "string",
"store" : "yes"
},
"InstitutionID" : {
"type" : "integer",
"store" : "yes"
},
"Name" : {
"type" : "string",
"store" : "yes"
}
}
}
這實際上是一個簡化的例子,因爲實際上在記錄的實際索引過程中添加的字段不僅僅是別名。
它在創建映射期間完全定義映射有多重要?
我會因索引編制操作期間自動調整映射而受到任何處罰,因爲機構記錄具有附加屬性索引?我期望機構隨着時間的推移獲得更多的財產,我想知道除了機構索引代碼之外,我是否還需要維護映射創建代碼。