我正在尝试将多个集合从mongodb导入到elasticsearch并加入它们,假设连接是不可能的,至少我想要从一些mongo集合到河流的特定字段到使用单河元的elasticsearch?
尝试下面的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,需要帮助吗?
答案 0 :(得分:0)
使用单一河流导入多个mongo集合是不可能的。 Elasticsearch-river-mongodb为每个应该由Elasticsearch索引的MongoDB集合创建一条新河。