GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-sdk/discovery/README.md at develop · gysgithub/java-sdk

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
34 lines (27 loc) · 994 Bytes
/

README.md

Copy path

File metadata and controls

34 lines (27 loc) · 994 Bytes
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Discovery

Installation

Maven
<dependency>
  <groupId>com.ibm.watson.developer_cloud</groupId>
  <artifactId>discovery</artifactId>
  <version>3.8.0</version>
</dependency>
Gradle
'com.ibm.watson.developer_cloud:discovery:3.8.0'

Usage

The Discovery wraps the environment, collection, configuration, document, and query operations of the Discovery service.

Discovery discovery = new Discovery("2016-12-15");
discovery.setEndPoint("https://gateway.watsonplatform.net/discovery/api/");
discovery.setUsernameAndPassword("<username>", "<password>");

//Build an empty query on an existing environment/collection
String environmentId = "<environmentId>";
String collectionId = "<collectionId";
QueryOptions queryOptions = new QueryOptions.Builder(environmentId, collectionId).build();
QueryResponse queryResponse = discovery.query(queryOptions).execute();
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.