Skip to content

Commit 547c61b

Browse files
committed
added sample config
1 parent 2623912 commit 547c61b

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

config-sample.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//Stuff that will have consequences
2+
3+
module.exports = Object.freeze({
4+
//Source client: from where the documents are to be fetched
5+
"source": {
6+
"host": "localhost",
7+
8+
"index": "my_source_index",
9+
"type": "_doc"
10+
},
11+
12+
//Target client: where documents are to be transferred to
13+
//If 'host' field is present, it'll be assumed the target is an elasticsearch server
14+
"target": {
15+
"index": "my_target_index",
16+
"type": "_doc",
17+
18+
"filePath": "data.json",
19+
20+
"host": "localhost:9200",
21+
"importMappingFromSource": true
22+
}
23+
})

0 commit comments

Comments
 (0)