我正在映射一個couchbase網關文檔,我想告訴elasticsearch避免索引由網關添加的內部屬性,如「_sync」,該對象包含另一個名爲「channels」的對象,其格式如下:如何在elasticsearch中映射動態字段值?
"channels": {
"i7de5558-32ad-48ca-bf91-858c3a1e4588": 12
}
所以我想這個對象的映射是這樣的:
"channels": {
"type": "object",
"properties": {
"i7de5558-32ad-48ca-bf91-858c3a1e4588": {
"type": "integer",
"index": "not_analyze"
}
}
}
的問題是,按鍵總是在不斷變化,所以我不知道我是否應該使用通配符這樣的「 *「:{」type「:」integer「,」index「:」not_analyze「}或者做其他事情。 有什麼建議嗎?
非常感謝,這沒有把戲。 – onizukaek