Skip to content

Commit 2d64d0d

Browse files
feat(discov1): remove discoV1
BREAKING CHANGE: DiscoveryV1 functionality has been removed
1 parent 3fa8b85 commit 2d64d0d

File tree

392 files changed

+2
-47610
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

392 files changed

+2
-47610
lines changed

.github/workflows/integration-test.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,13 @@ jobs:
4646
ASSISTANT_WORKSPACE_ID: ${{ secrets.WA_WORKSPACE_ID }}
4747
ASSISTANT_ASSISTANT_ID: ${{ secrets.WA_ASSISTANT_ID }}
4848
ASSISTANT_URL: "https://api.us-south.assistant.watson.cloud.ibm.com"
49-
DISCOVERY_APIKEY: ${{ secrets.D1_APIKEY }}
50-
DISCOVERY_ENVIRONMENT_ID: ${{ secrets.D1_ENVIRONMENT_ID }}
51-
DISCOVERY_COLLECTION_ID: ${{ secrets.D1_COLLECTION_ID }}
52-
DISCOVERY_URL: "https://api.us-south.discovery.watson.cloud.ibm.com"
5349
DISCOVERY_V2_APIKEY: ${{ secrets.D2_APIKEY }}
5450
DISCOVERY_V2_PROJECT_ID: ${{ secrets.D2_PROJECT_ID }}
5551
DISCOVERY_V2_COLLECTION_ID: ${{ secrets.D2_COLLECTION_ID }}
5652
DISCOVERY_V2_URL: "https://api.us-south.discovery.watson.cloud.ibm.com"
5753
run: |
5854
mvn test -Dtest=v1/AssistantServiceIT -DfailIfNoTests=false -pl assistant,common $MVN_ARGS
5955
mvn test -Dtest=v2/AssistantServiceIT -DfailIfNoTests=false -pl assistant,common $MVN_ARGS
60-
mvn test -Dtest=v1/DiscoveryServiceIT -DfailIfNoTests=false -pl discovery,common $MVN_ARGS
6156
mvn test -Dtest=v2/DiscoveryIT -DfailIfNoTests=false -pl discovery,common $MVN_ARGS
6257
mvn test -Dtest=LanguageTranslatorIT -DfailIfNoTests=false -pl language-translator,common $MVN_ARGS
6358
mvn test -Dtest=NaturalLanguageUnderstandingIT -DfailIfNoTests=false -pl natural-language-understanding,common $MVN_ARGS

discovery/README.md

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,9 @@
2020

2121
## Usage
2222

23-
This SDK supports both the Discovery v1 and v2 APIs.
23+
This SDK supports the Discovery v2 APIs.
2424

25-
Otherwise, the APIs are fairly similar, offering the ability to manage collections of documents and query them for insights. You can learn more about the Discovery service [here](https://cloud.ibm.com/docs/discovery?topic=discovery-gs-api).
26-
27-
### Using Discovery v1
28-
29-
```java
30-
// Make sure to use the Discovery v1 import!
31-
Authenticator authenticator = new IamAuthenticator("<iam_api_key>");
32-
Discovery discovery = new Discovery("2019-04-30", authenticator);
33-
34-
//Build an empty query on an existing environment/collection
35-
String environmentId = "<environment_id>";
36-
String collectionId = "<collection_id>";
37-
QueryOptions queryOptions = new QueryOptions.Builder(environmentId, collectionId).build();
38-
QueryResponse queryResponse = discovery.query(queryOptions).execute().getResult();
39-
```
25+
Otherwise, the APIs are fairly similar, offering the ability to manage collections of documents and query them for insights. You can learn more about the Discovery service [here](https://cloud.ibm.com/apidocs/discovery-data).
4026

4127
### Using Discovery v2
4228

discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java

Lines changed: 0 additions & 2943 deletions
This file was deleted.

discovery/src/main/java/com/ibm/watson/discovery/v1/model/AddDocumentOptions.java

Lines changed: 0 additions & 253 deletions
This file was deleted.

0 commit comments

Comments
 (0)