Skip to content

Commit be078b1

Browse files
authored
Updated comments
1 parent 86b6bcc commit be078b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Search/BingEntitySearch/src/main/java/com/microsoft/azure/cognitiveservices/search/entitysearch/samples/BingEntitySearchSample.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,13 @@ public static void main(String[] args) {
269269
//=============================================================
270270
// Authenticate
271271

272-
// If you are going to set the AZURE_BING_SAMPLES_API_KEY environment variable, make sure you set it for your OS, then reopen your command prompt or IDE.
272+
// If you are going to set the BING_ENTITY_SEARCH_SUBSCRIPTION_KEY environment variable, make sure you set it for your OS, then reopen your command prompt or IDE.
273273
// If not, you may get an API key not found exception.
274-
// IMPORTANT: if you have not set the `AZURE_BING_SAMPLES_API_KEY` environment variable to your cognitive services API key:
274+
// IMPORTANT: if you have not set the BING_ENTITY_SEARCH_SUBSCRIPTION_KEY environment variable to your cognitive services API key:
275275
// 1. comment out the below line
276276
final String subscriptionKey = System.getenv("BING_ENTITY_SEARCH_SUBSCRIPTION_KEY");
277-
// 2. paste your cognitive services API key below, and uncomment the line
278-
//final String subscriptionKey = "enter your key here";
277+
// 2. add your key to your environment variables, and uncomment the line
278+
//final String subscriptionKey = System.getenv("BING_ENTITY_SEARCH_SUBSCRIPTION_KEY");
279279

280280
BingEntitySearchAPI client = BingEntitySearchManager.authenticate(subscriptionKey);
281281

0 commit comments

Comments
 (0)