The Watson Discovery Service Java APIs allow a consumer to specify:
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?
The answer here was that the feature wasn't supported until v4.0 of the Java client (released Sept 2017)
Feature is available now.