I need to index multiple jsons in elasticsearch and indexing id should be given by user not by automatically created by elasticserach.
Can any please tell me how to stop elasticsearch from creating automatic index id and how can I use my desired id for data indexing.
Below is the part of node.js code for indexing data:
elasticSearchClient.index('index_name', 'type', json)
.on('data', function(data) {
console.log("************ "+data+" ****************")
})
.exec()
Any help will be greatly appreciated!
Regards