Skip to content

Commit 86b6bcc

Browse files
authored
Updated comments
1 parent fa67db9 commit 86b6bcc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Search/BingCustomSearch/src/main/java/com/microsoft/azure/cognitiveservices/search/customsearch/samples/BingCustomSearchSample.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,20 +72,18 @@ public static void main(String[] args) {
7272

7373
// If you do not have a customConfigId, you can also use 1 as your value when setting your environment variable.
7474

75-
// If you are going to set the AZURE_BING_SAMPLES_API_KEY and AZURE_BING_SAMPLES_CUSTOM_CONFIG_ID environment variables, make sure you set it for your OS, then reopen your command prompt or IDE.
75+
// If you are going to set the BING_CUSTOM_SEARCH_SUBSCRIPTION_KEY and AZURE_BING_SAMPLES_CUSTOM_CONFIG_ID environment variables, make sure you set it for your OS, then reopen your command prompt or IDE.
7676
// If not, you may get an API key not found exception.
77-
// IMPORTANT: if you have not set the `AZURE_BING_SAMPLES_API_KEY` and AZURE_BING_SAMPLES_CUSTOM_CONFIG_ID environment variables to your cognitive services API key:
77+
// IMPORTANT: if you have not set the BING_CUSTOM_SEARCH_SUBSCRIPTION_KEY and AZURE_BING_SAMPLES_CUSTOM_CONFIG_ID environment variables to your cognitive services API key:
7878
// 1. comment out the below lines
7979
final String subscriptionKey = System.getenv("BING_CUSTOM_SEARCH_SUBSCRIPTION_KEY");
8080
final String customConfigId = System.getenv("AZURE_BING_SAMPLES_CUSTOM_CONFIG_ID");
8181
// 2. paste your cognitive services API key and custom config id below, and uncomment the following two lines
82-
//final String subscriptionKey = "enter your key here";
82+
//final String subscriptionKey = System.getenv("BING_CUSTOM_SEARCH_SUBSCRIPTION_KEY");
8383
//final String customConfigId = "enter your custom config id here";
8484

85-
8685
BingCustomSearchAPI client = BingCustomSearchManager.authenticate(subscriptionKey);
8786

88-
8987
runSample(client, customConfigId);
9088
} catch (Exception e) {
9189
System.out.println(e.getMessage());

0 commit comments

Comments
 (0)