watson-developer-cloud / java-sdk

:1st_place_medal: Java SDK to use the IBM Watson services.
http://watson-developer-cloud.github.io/java-sdk/
Apache License 2.0
593 stars 532 forks source link

[discovery] Add Filter Aggregation #582

Closed JamieGilbertIBM closed 7 years ago

JamieGilbertIBM commented 7 years ago

Description

Feature Request: Add in the filter aggregation enum for a discovery QueryRequest . The spec can be found at http://www.ibm.com/watson/developercloud/doc/discovery/query-reference.shtml#aggregrations

Excerpt:

Most often used in a combined query, and it filters the aggregation results using the query language syntax. This example filters results by the concept Pharmacovigilance.

Example:

filter(enriched_text.concepts.text:Pharmacovigilance)

Solution

When you open an issue for a feature request, please add as much detail as possible:

stanleywym commented 7 years ago

+1