我正在尝试将多个集合从 mongodb 导入到 elasticsearch 并加入它们,可以说如果加入是不可能的,至少我希望使用单个河流元从一些 mongo 集合到河流到弹性搜索的特定字段?
尝试低于 meta ,不起作用。
PUT _river/mongodbicslicense/_meta
{
"type": "mongodb",
"mongodb": {
"servers": [
{
"host": "abc",
"port": "27017"
}
],
"options": {
"skip_initial_import": false
"include_collection": [
"abc",
"xyz"
],
"include_fields": [
"A",
"B",
"X",
"Z"
]
},
"db": "datadb",
"gridfs": false,
"credentials": [
{
"db": "datadb",
"user": "me",
"password": "mypass"
}
]
},
"index": {
"name": "frommongoindex",
"type": "abcd"
}
}
探索 mongo,需要帮助吗?