This is my code which Im using to index some data. But,when I search for the index,in elasticsearch it is not getting created there.
var createIndex = function(refId,docFeed){
esClient.create({
index:"indexName",
type:"typeName",
id:refId,
body:docFeed
},
function(error,response){
emptyFunction();
});
}
Can anybody help me on this?