This is a set of nodes for working with the IBM Watson Discovery service. IBM Watson™ Discovery makes it possible to rapidly build cognitive, cloud-based exploration applications that unlock actionable insights hidden in unstructured data — including your own proprietary data, as well as public and third-party data.
This package offers two nodes
Insert - For publishing documents to watson discovery. Update - For updaging documents already in the service
The nodes both contain quing systems, and will auto retry if discovery responds with a 429 ( busy ). In the node you can define that maxiumum number of items to queue up, and how long in milliseconds to wait between retrys.
msg.datatype = "JSON"
msg.payload = {
content: {
sampledata:"some data goes here"
},
filename: "sample_json.json"
};
return msg;
msg.datatype = "BIN"
msg.payload = {
content: msg.payload.content, //This should be a Buffer from an fs.readFileSync(),
filename: "updated_doc_v2.pdf"
};
msg.document_id = "6022b729-f180-4772-88a7-f73333594ead"
return msg;
msg.datatype = "JSON"
msg.payload = {
content: {
sampledata:"some data goes here"
}
};
msg.environment_id = "env_id";
msg.collection_id = "collection_id"
return msg;