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
590 stars 533 forks source link

Discovery : Not returning Passages. #757

Closed vivekmalikymca closed 7 years ago

vivekmalikymca commented 7 years ago

I don't think we have option to enable passages in current sdk. could you please add passages support.

** queryBuilder class doesn't have any method for passages just unlike count and filter current option. queryBuilder.query(q); discovery.query(queryBuilder.build()).execute();

lpatino10 commented 7 years ago

This capability should be possible in version 3.8.0 of the SDK. It's possible as an option in the QueryRequest.Builder as shown here: https://www.ibm.com/watson/developercloud/discovery/api/v1/?java#query-collection