watson discovery query -- result set not as expected -


i query discovery service 'news collection' , using query command.

discovery.query({ environment_id: ‘my env id’,               collection_id: ‘my coll id’,               “count”: 10,               “return”: “title,enrichedtitle.text”,               “query”: “dieter zetsche”,               “aggregations”: [ “term(docsentiment.type:2)“]             },  function(err, response) { … 

i expecting following response structure

{     “matching_results”: 7607,     “aggregations”: [        {...}     ],     “passages”: [],     “results”: [        {...}     ] } 

but response without ‘aggregation’ -- recommendation??? this

{"matching_results":7603,    "results":[       {"id":"....  

please note json object name sentiment analysis has been changed docsentiment sentiment

more details here: https://www.ibm.com/watson/developercloud/doc/discovery/migrate-nlu.html#overview-of-major-changes


Comments

Popular posts from this blog

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

javascript - Understanding ExtJS Framework Syntax -