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
Post a Comment