YUKI Hiroshi
null+****@clear*****
Mon Dec 17 18:44:20 JST 2012
YUKI Hiroshi 2012-12-17 18:44:20 +0900 (Mon, 17 Dec 2012) New Revision: 9a0afcdf6992a16c028ef81c993456360417f402 https://github.com/groonga/gcs/commit/9a0afcdf6992a16c028ef81c993456360417f402 Log: Call Documents/Batch API correctly Modified files: tools/scenario-runner.js Modified: tools/scenario-runner.js (+6 -2) =================================================================== --- tools/scenario-runner.js 2012-12-17 18:41:52 +0900 (9efd76f) +++ tools/scenario-runner.js 2012-12-17 18:44:20 +0900 (9b4c6a1) @@ -290,10 +290,14 @@ ScenarioRunner.prototype._process = function(scenario, callback) { path = path.replace(/%ROOT%/gim, __dirname + '/../'); batches = this.client.readSDFBatch(path); } - return this.client.DocumentsBatch({ Docs: batches }, requestCallback); + return this.client.setupAPI('doc', function(documentsAPI) { + documentsAPI.DocumentsBatch({ Docs: batches }, requestCallback); + }); case 'search': - return this.client.Search(request.params, requestCallback); + return this.client.setupAPI('search', function(searchAPI) { + searchAPI.Search(request.params, requestCallback); + }); case 'configuration': default: -------------- next part -------------- HTML����������������������������... Download