0
我想查詢發現服務的'新聞集合',我使用這個查詢命令。沃森發現查詢 - 結果集不如預期
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":"....