Search code examples
ibm-watsonwatson-discovery

Is there any way to avail of the WDS query "passage" feature via the Java APIs?


The Watson Discovery Service Java APIs allow a consumer to specify:

  • query
  • aggregation
  • count
  • filter
  • offset
  • returnFields

via com.ibm.watson.developer_cloud.discovery.v1.model.query.QueryRequest.Builder

There appears (as of version 3.8.0) to be no way to set passages=true though? Is this feature coming/planned?


Solution

  • The answer here was that the feature wasn't supported until v4.0 of the Java client (released Sept 2017)

    Feature is available now.