Skip to content

Commit 5412cdc

Browse files
committed
adding autosuggest updates
1 parent 3e6513c commit 5412cdc

File tree

7 files changed

+30
-14
lines changed

7 files changed

+30
-14
lines changed

articles/cognitive-services/Bing-Autosuggest/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-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";

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'

includes/cognitive-services-bing-autosuggest-signup-requirements.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,22 @@ author: aahill
33
ms.author: aahi
44
ms.service: cognitive-services
55
ms.topic: include
6-
ms.date: 02/19/2019
6+
ms.date: 12/11/2019
77
---
88

9-
You must have a [Cognitive Services API account](https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account) with access to the Bing Autosuggest API. If you don't have an Azure subscription, you can [create an account](https://azure.microsoft.com/try/cognitive-services/?api=bing-news-search-api) for free. Before continuing, You will need the access key provided after activating your free trial, or a paid subscription key from your Azure dashboard.
9+
## Create an Azure resource
10+
11+
Start using the Bing Web Search API by creating one of the Azure resources below.
12+
13+
* [Create a trial resource](https://azure.microsoft.com/try/cognitive-services/?api=bing-web-search-api):
14+
* No Azure subscription needed.
15+
* Valid for seven days, for free. After signing up, a trial key and endpoint will be available on the [Azure website](https://azure.microsoft.com/try/cognitive-services/my-apis/).
16+
17+
* [Create a Bing Autosuggest resource](https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesBingAutosuggest-v7):
18+
* Available through the Azure portal until you delete the resource.
19+
* Use the free pricing tier to try the service, and upgrade later to a paid tier for production.
20+
* Bing Autosuggest is also offered in paid tiers of the [Bing Search v7 resource](https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesBingSearch-v7).
21+
22+
* [Create a Multi-Service resource](https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesAllInOne):
23+
* Available through the Azure portal until you delete the resource.
24+
* Use the same key and endpoint for your applications, across multiple Cognitive Services.

0 commit comments

Comments
 (0)