Skip to content

Commit e8961b2

Browse files
authored
Updated comments
1 parent 89d1b5d commit e8961b2

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,10 @@ 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 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.
76-
// If not, you may get an API key not found exception.
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:
78-
// 1. comment out the below lines
75+
// Set the BING_CUSTOM_SEARCH_SUBSCRIPTION_KEY and AZURE_BING_SAMPLES_CUSTOM_CONFIG_ID environment variables,
76+
// then reopen your command prompt or IDE. If not, you may get an API key not found exception.
7977
final String subscriptionKey = System.getenv("BING_CUSTOM_SEARCH_SUBSCRIPTION_KEY");
8078
final String customConfigId = System.getenv("AZURE_BING_SAMPLES_CUSTOM_CONFIG_ID");
81-
// 2. paste your custom config id below and add your key to your environment variables
82-
//final String subscriptionKey = System.getenv("BING_CUSTOM_SEARCH_SUBSCRIPTION_KEY");
83-
//final String customConfigId = "enter your custom config id here";
8479

8580
BingCustomSearchAPI client = BingCustomSearchManager.authenticate(subscriptionKey);
8681

0 commit comments

Comments
 (0)