This package cannot be used alone. EZS has to be installed.
var ezs = require('ezs');
ezs.use(require('ezs-istex'));
Come after : ISTEXRequest
This plugin will download the selected file contained in the result of ISTEX API.
.pipe(ezs('ISTEXDownload', {
criteria: { // Criteria
"extension": "txt",
"original": false,
"mimetype": "text/plain"
},
out: "/my/path/", // Output path
key: "fulltext" // Which key contain the data
}))
Come after : ISTEXKeywords (for example)
This plugin will transform Array into Object.
.pipe(ezs('ISTEXRegroup', {
out: "myFile.json" // Will save result here
}))
An array like :
[
{ "id": "0", ...},
{ "id": "1", ...},
...
]
will be transformed into :
{
"0" : { "id": "0", ...},
"1" : { "id": "1", ...},
}
Come after : (ISTEXKeywords && ISTEXRegroup)
This plugin create a graph document-document with keywords
.pipe(ezs('ISTEXGraphs', {
options: {
out: graphFile // Will save result here
}
}))
Come after : (ISTEXDownload)
this plugin extract keywords of given .txt files
.pipe(ezs('ISTEXKeywords', {
out: res.out // Will save result here
}))