我想查询发现服务“新闻收集”,我正在使用此查询命令。
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) { …
我期待以下响应结构
{
“matching_results”: 7607,
“aggregations”: [
{...}
],
“passages”: [],
“results”: [
{...}
]
}
但我只得到没有“聚合”的回复——有什么建议吗??? 像这样
{"matching_results":7603,
"results":[
{"id":"....
请注意,情感分析的 JSON 对象名称已从 docSentiment 更改 至 sentiment
更多详细信息请参见:https://www.ibm.com/watson/developercloud/doc/discovery/migrate-nlu.html#overview-of-major-changes