Skip to content

Commit 4222a84

Browse files
authored
Merge pull request #98684 from aahill/bing-entity-update
[CogSvcs] Autosuggest & Entity Search setup update
2 parents b73b32a + 7614cd2 commit 4222a84

20 files changed

+69
-37
lines changed

articles/cognitive-services/Bing-Autosuggest/quickstarts/csharp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manager: nitinme
99
ms.service: cognitive-services
1010
ms.subservice: bing-autosuggest
1111
ms.topic: quickstart
12-
ms.date: 07/26/2019
12+
ms.date: 12/11/2019
1313
ms.author: aahi
1414
---
1515
# Quickstart: Suggest search queries with the Bing Autosuggest REST API and C#
@@ -35,7 +35,7 @@ Use this quickstart to begin making calls to the Bing Autosuggest API and gettin
3535
using System.Text;
3636
```
3737

38-
2. In a new class, create variables for your API host and path, [market code](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-autosuggest-api-v7-reference#market-codes), and a partial search query.
38+
2. In a new class, create variables for your API host and path, [market code](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-autosuggest-api-v7-reference#market-codes), and a partial search query. You can use the global endpoint below, or the [custom subdomain](../../../cognitive-services/cognitive-services-custom-subdomains.md) endpoint displayed in the Azure portal for your resource.
3939
4040
```csharp
4141
static string host = "https://api.cognitive.microsoft.com";
@@ -60,7 +60,7 @@ Use this quickstart to begin making calls to the Bing Autosuggest API and gettin
6060
}
6161
```
6262

63-
2. In the same function above, create a request URI by combining your API host and path. Append your market to the `?mkt=` parameter, and your query to the `&query=` paramter. Be sure to URL-encode your query.
63+
2. In the same function above, create a request URI by combining your API host and path. Append your market to the `?mkt=` parameter, and your query to the `&query=` parameter. Be sure to URL-encode your query.
6464

6565
```csharp
6666
string uri = host + path + "?mkt=" + market + "&query=" + System.Net.WebUtility.UrlEncode (query);

articles/cognitive-services/Bing-Autosuggest/quickstarts/java.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manager: nitinme
99
ms.service: cognitive-services
1010
ms.subservice: bing-autosuggest
1111
ms.topic: quickstart
12-
ms.date: 07/26/2019
12+
ms.date: 12/11/2019
1313
ms.author: aahi
1414
---
1515

@@ -40,7 +40,7 @@ Use this quickstart to begin making calls to the Bing Autosuggest API and gettin
4040
import com.google.gson.JsonParser;
4141
```
4242

43-
2. Create variables for your subscription key, the API host and path, your [market code](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-autosuggest-api-v7-reference#market-codes), and a search query.
43+
2. Create variables for your subscription key, the API host and path, your [market code](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-autosuggest-api-v7-reference#market-codes), and a search query. You can use the global endpoint below, or the [custom subdomain](../../../cognitive-services/cognitive-services-custom-subdomains.md) endpoint displayed in the Azure portal for your resource.
4444

4545
```java
4646
static String subscriptionKey = "enter key here";

articles/cognitive-services/Bing-Autosuggest/quickstarts/nodejs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manager: nitinme
99
ms.service: cognitive-services
1010
ms.subservice: bing-autosuggest
1111
ms.topic: quickstart
12-
ms.date: 07/26/2019
12+
ms.date: 12/11/2019
1313
ms.author: aahi
1414
---
1515

@@ -33,7 +33,7 @@ Use this quickstart to begin making calls to the Bing Autosuggest API and gettin
3333
let https = require ('https');
3434
```
3535

36-
2. Create variables for the API endpoint host and path, your subscription key, [market code](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-autosuggest-api-v7-reference#market-codes), and a search term.
36+
2. Create variables for the API endpoint host and path, your subscription key, [market code](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-autosuggest-api-v7-reference#market-codes), and a search term. You can use the global endpoint below, or the [custom subdomain](../../../cognitive-services/cognitive-services-custom-subdomains.md) endpoint displayed in the Azure portal for your resource.
3737

3838
```javascript
3939
// Replace the subscriptionKey string value with your valid subscription key.

articles/cognitive-services/Bing-Autosuggest/quickstarts/php.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manager: nitinme
99
ms.service: cognitive-services
1010
ms.subservice: bing-autosuggest
1111
ms.topic: quickstart
12-
ms.date: 07/26/2019
12+
ms.date: 12/11/2019
1313
ms.author: aahi
1414
---
1515

@@ -28,7 +28,8 @@ Use this quickstart to begin making calls to the Bing Autosuggest API and gettin
2828
1. Create a new PHP project in your favorite IDE.
2929
2. Add the code provided below.
3030
3. Replace the `subscriptionKey` value with an access key valid for your subscription.
31-
4. Run the program.
31+
4. You can use the global endpoint below, or the [custom subdomain](../../../cognitive-services/cognitive-services-custom-subdomains.md) endpoint displayed in the Azure portal for your resource.
32+
5. Run the program.
3233

3334
```php
3435
<?php

articles/cognitive-services/Bing-Autosuggest/quickstarts/python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manager: nitinme
99
ms.service: cognitive-services
1010
ms.subservice: bing-autosuggest
1111
ms.topic: quickstart
12-
ms.date: 07/26/2019
12+
ms.date: 12/11/2019
1313
ms.author: aahi
1414
---
1515
# Quickstart: Suggest search queries with the Bing Autosuggest REST API and Python
@@ -30,7 +30,7 @@ Use this quickstart to begin making calls to the Bing Autosuggest API and gettin
3030
import http.client, urllib.parse, json
3131
```
3232

33-
2. Create variables for your API host and path, [market code](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-autosuggest-api-v7-reference#market-codes), and a partial search query.
33+
2. Create variables for your API host and path, [market code](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-autosuggest-api-v7-reference#market-codes), and a partial search query. You can use the global endpoint below, or the [custom subdomain](../../../cognitive-services/cognitive-services-custom-subdomains.md) endpoint displayed in the Azure portal for your resource.
3434

3535
```python
3636
subscriptionKey = 'enter key here'

articles/cognitive-services/Bing-Autosuggest/quickstarts/ruby.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manager: nitinme
99
ms.service: cognitive-services
1010
ms.subservice: bing-autosuggest
1111
ms.topic: quickstart
12-
ms.date: 07/26/2019
12+
ms.date: 12/11/2019
1313
ms.author: aahi
1414
---
1515

@@ -34,7 +34,7 @@ Use this quickstart to begin making calls to the Bing Autosuggest API and gettin
3434
require 'json'
3535
```
3636

37-
2. Create variables for your API host and path, [market code](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-autosuggest-api-v7-reference#market-codes), partial search query.
37+
2. Create variables for your API host and path, [market code](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-autosuggest-api-v7-reference#market-codes), partial search query. You can use the global endpoint below, or the [custom subdomain](../../../cognitive-services/cognitive-services-custom-subdomains.md) endpoint displayed in the Azure portal for your resource.
3838

3939
```ruby
4040
subscriptionKey = 'enter your key here'

articles/cognitive-services/Bing-Autosuggest/tutorials/autosuggest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ function bingAutosuggest(query, key) {
189189
```
190190
191191
Specify the Bing Autosuggest API endpoint and declare an XMLHttpRequest object, which we will
192-
use to send requests to the endpoint.
192+
use to send requests. You can use the global endpoint below, or the [custom subdomain](../../../cognitive-services/cognitive-services-custom-subdomains.md) endpoint displayed in the Azure portal for your resource.
193193
194194
```html
195195
var endpoint = "https://api.cognitive.microsoft.com/bing/v7.0/Suggestions";

articles/cognitive-services/Bing-Entities-Search/quickstarts/csharp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manager: nitinme
99
ms.service: cognitive-services
1010
ms.subservice: bing-entity-search
1111
ms.topic: quickstart
12-
ms.date: 03/12/2019
12+
ms.date: 12/11/2019
1313
ms.author: aahi
1414
---
1515

@@ -46,7 +46,7 @@ While this application is written in C#, the API is a RESTful Web service compat
4646
using System.Text;
4747
```
4848

49-
2. Create a new class, and add variables for the API endpoint, your subscription key, and query you want to search.
49+
2. Create a new class, and add variables for the API endpoint, your subscription key, and query you want to search. You can use the global endpoint below, or the [custom subdomain](../../../cognitive-services/cognitive-services-custom-subdomains.md) endpoint displayed in the Azure portal for your resource.
5050

5151
```csharp
5252
namespace EntitySearchSample

articles/cognitive-services/Bing-Entities-Search/quickstarts/entity-sdk-csharp-quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manager: nitinme
99
ms.service: cognitive-services
1010
ms.subservice: bing-entity-search
1111
ms.topic: quickstart
12-
ms.date: 07/15/2019
12+
ms.date: 12/11/2019
1313
ms.author: aahi
1414
---
1515

articles/cognitive-services/Bing-Entities-Search/quickstarts/entity-sdk-java-quickstart.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manager: nitinme
99
ms.service: cognitive-services
1010
ms.subservice: bing-entity-search
1111
ms.topic: quickstart
12-
ms.date: 07/24/2019
12+
ms.date: 12/11/2019
1313
ms.author: aahi
1414
---
1515
# Quickstart: Send a search request with the Bing Entity Search SDK for Java
@@ -62,7 +62,7 @@ Install the Bing Entity Search SDK dependencies by using Maven, Gradle, or anoth
6262

6363
## Create a search client
6464

65-
1. Implement the `dominantEntityLookup` client, which requires your API endpoint, and an instance of the `ServiceClientCredentials` class.
65+
1. Implement the `dominantEntityLookup` client, which requires your API endpoint, and an instance of the `ServiceClientCredentials` class. You can use the global endpoint below, or the [custom subdomain](../../../cognitive-services/cognitive-services-custom-subdomains.md) endpoint displayed in the Azure portal for your resource.
6666

6767
```java
6868
public static EntitySearchAPIImpl getClient(final String subscriptionKey) {

0 commit comments

Comments
 (0)