2017-07-26 82 views
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":".... 

回答