I am trying to import multiple collection from mongodb to elasticsearch and join them , lets say if join is not possible at least I want specific fields from some mongo collections to river in to elasticsearch using single river meta?
tried below meta , doesn't work.
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"
}
}
exploring mongo , need help ?