J'exécutez une requête à l'API de service IBM Watson Discovery dans une application java:agrégation des nouvelles Watson Discovery par timeslice retourne null
queryBuilder.filter("blekko.hostrank>20,blekko.chrondate>1492552800,blekko.chrondate<1493157600,blekko.documentType:!\"blog\",blekko.documentType:!\"review\",language:english");
queryBuilder.query("text:" + brand);
queryBuilder.aggregation("[timeslice(blekko.chrondate,1day), term(docSentiment.type)]");
QueryResponse queryResponse = discovery.query(queryBuilder.build()).execute();
je la sortie suivante dans la réponse pour l'agrégation:
"aggregations": [
null,
{
"results": [
{
"key": "positive",
"matching_results": 245
},
{
"key": "negative",
"matching_results": 219
},
{
"key": "neutral",
"matching_results": 11
}
],
"type": "term",
"field": "docSentiment.type"
}
]
Les agrégations de timeslice retournent null. Quelqu'un a-t-il de l'expérience à ce sujet? Je vous remercie.