./elaster
var collections = config.collections.map(function (c)
My config
module.exports = {
mongo: {
connection: 'mongodb://192.168.1.208:27017/publicdb'
},
elastic: {
host: {
host: 'http://192.168.1.143:9200'
},
requestTimeout: 5000
},
collections: {
name: 'org_name',
index: 'org_name',
type: 'collection',
fields: ['_id','fullName','_etag'],
mappings: {
'org_name': {
'properties': {
'fullName': {
'type': 'string'
}
}
}
}
}
};
What am I doing wrong?
P.S. I`m speak rus)
./elaster
var collections = config.collections.map(function (c)
My config
module.exports = {
mongo: {
connection: 'mongodb://192.168.1.208:27017/publicdb'
},
};
What am I doing wrong?
P.S. I`m speak rus)