Skip to content

Commit 7518918

Browse files
authored
Merge pull request #110392 from john-par/1678688-adding-zone-pivots-bing-autosuggest
1678688 adding zone pivots bing autosuggest
2 parents f43d7d0 + 19a48fa commit 7518918

File tree

7 files changed

+71
-29
lines changed

7 files changed

+71
-29
lines changed

.openpublishing.redirection.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1866,6 +1866,16 @@
18661866
"redirect_url": "/azure/cognitive-services/bing-visual-search/quickstarts/client-libraries?pivots=programming-language-python",
18671867
"redirect_document_id": false
18681868
},
1869+
{
1870+
"source_path": "articles/cognitive-services/Bing-Autosuggest/quickstarts/csharp-sdk.md",
1871+
"redirect_url": "/azure/cognitive-services/bing-autosuggest/quickstarts/client-libraries?pivots=programming-language-csharp",
1872+
"redirect_document_id": false
1873+
},
1874+
{
1875+
"source_path": "articles/cognitive-services/Bing-Autosuggest/quickstarts/go-sdk.md",
1876+
"redirect_url": "/azure/cognitive-services/bing-autosuggest/quickstarts/client-libraries?pivots=programming-language-go",
1877+
"redirect_document_id": false
1878+
},
18691879
{
18701880
"source_path": "articles/virtual-machines/linux/classic/rdma-cluster.md",
18711881
"redirect_url": "/azure/virtual-machines/linux/sizes-hpc#rdma-capable-instances",

articles/cognitive-services/Bing-Autosuggest/quickstarts/csharp-sdk.md renamed to articles/cognitive-services/Bing-Autosuggest/includes/quickstarts/autosuggest-client-library-csharp.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
---
2-
title: "Quickstart: Bing Autosuggest client library for .NET | Microsoft Docs"
3-
description: Get started with the Bing Autosuggest client library for .NET, and get search suggestions based on partial query strings.
2+
title: Bing Autosuggest C# client library quickstart
3+
titleSuffix: Azure Cognitive Services
44
services: cognitive-services
55
author: aahill
66
manager: nitinme
77
ms.service: cognitive-services
8-
ms.subservice: bing-autosuggest
9-
ms.topic: quickstart
10-
ms.date: 12/20/2019
8+
ms.topic: include
9+
ms.date: 04/06/2020
1110
ms.author: aahi
1211
---
1312

14-
# Quickstart: Bing Autosuggest client library for .NET
15-
1613
Get started with the Bing Autosuggest client library for .NET. Follow these steps to install the package and try out the example code for basic tasks.
1714

1815
Use the Bing Autosuggest client library for .NET to get search suggestions based on partial query strings.
@@ -28,7 +25,7 @@ Use the Bing Autosuggest client library for .NET to get search suggestions based
2825

2926
### Create an Azure resource
3027

31-
[!INCLUDE [cognitive-services-bing-autosuggest-signup-requirements](../../../../includes/cognitive-services-bing-autosuggest-signup-requirements.md)]
28+
[!INCLUDE [cognitive-services-bing-autosuggest-signup-requirements](~/includes/cognitive-services-bing-autosuggest-signup-requirements.md)]
3229

3330
### Create an environment variable
3431

@@ -208,15 +205,15 @@ dotnet run
208205

209206
If you want to clean up and remove a Cognitive Services subscription, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it.
210207

211-
* [Portal](../../cognitive-services-apis-create-account.md#clean-up-resources)
212-
* [Azure CLI](../../cognitive-services-apis-create-account-cli.md#clean-up-resources)
208+
* [Portal](../../../cognitive-services-apis-create-account.md#clean-up-resources)
209+
* [Azure CLI](../../../cognitive-services-apis-create-account-cli.md#clean-up-resources)
213210

214211
## Next steps
215212

216213
> [!div class="nextstepaction"]
217-
> [Bing Autosuggest tutorial](../tutorials/autosuggest.md)
214+
> [Bing Autosuggest tutorial](../../tutorials/autosuggest.md)
218215
219216
## See also
220217

221-
- [What is Bing Autosuggest?](../get-suggested-search-terms.md)
218+
- [What is Bing Autosuggest?](../../get-suggested-search-terms.md)
222219
- [Bing Autosuggest dotnet reference](https://docs.microsoft.com/dotnet/api/overview/azure/cognitiveservices/client/bingautosuggest?view=azure-dotnet)

articles/cognitive-services/Bing-Autosuggest/quickstarts/go-sdk.md renamed to articles/cognitive-services/Bing-Autosuggest/includes/quickstarts/autosuggest-client-library-go.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
---
2-
title: "Quickstart: Bing Autosuggest client library for Go | Microsoft Docs"
3-
description: Get started with the Bing Autosuggest client library for Go, and get search suggestions based on partial query strings.
2+
title: Bing Autosuggest Go client library quickstart
3+
titleSuffix: Azure Cognitive Services
44
services: cognitive-services
55
author: aahill
66
manager: nitinme
77
ms.service: cognitive-services
8-
ms.subservice: bing-autosuggest
9-
ms.topic: quickstart
10-
ms.date: 03/24/2020
8+
ms.topic: include
9+
ms.date: 04/06/2020
1110
ms.author: aahi
1211
---
1312

14-
# Quickstart: Bing Autosuggest client library for Go
15-
1613
Get started with the Bing Autosuggest client library for Go. Follow these steps to install the library and try out our examples for basic tasks.
1714

1815
Use the Bing Autosuggest client library for Go to get search suggestions based on partial query strings.
@@ -30,7 +27,7 @@ Use the Bing Autosuggest client library for Go to get search suggestions based o
3027

3128
Begin using the Bing Autosuggest client library by creating an Azure resource. Choose the resource type below that's right for you:
3229

33-
[!INCLUDE [cognitive-services-bing-autosuggest-signup-requirements](../../../../includes/cognitive-services-bing-autosuggest-signup-requirements.md)]
30+
[!INCLUDE [cognitive-services-bing-autosuggest-signup-requirements](~/includes/cognitive-services-bing-autosuggest-signup-requirements.md)]
3431

3532
### Create an environment variable
3633

@@ -212,15 +209,15 @@ go run sample-app.go
212209

213210
If you want to clean up and remove a Cognitive Services subscription, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it.
214211

215-
* [Portal](../../cognitive-services-apis-create-account.md#clean-up-resources)
216-
* [Azure CLI](../../cognitive-services-apis-create-account-cli.md#clean-up-resources)
212+
* [Portal](../../../cognitive-services-apis-create-account.md#clean-up-resources)
213+
* [Azure CLI](../../../cognitive-services-apis-create-account-cli.md#clean-up-resources)
217214

218215
## Next steps
219216

220217
> [!div class="nextstepaction"]
221-
> [Bing Autosuggest tutorial](../tutorials/autosuggest.md)
218+
> [Bing Autosuggest tutorial](../../tutorials/autosuggest.md)
222219
223220
## See also
224221

225-
- [What is Bing Autosuggest?](../get-suggested-search-terms.md)
222+
- [What is Bing Autosuggest?](../../get-suggested-search-terms.md)
226223
- [Bing Autosuggest API v7 reference](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-autosuggest-api-v7-reference)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: 'Quickstart: Use the Bing Autosuggest client library'
3+
titleSuffix: Azure Cognitive Services
4+
description: The Autosuggest API offers client libraries that makes it easy to integrate search capabilities into your applications. Use this quickstart to start sending search requests, and get back results.
5+
services: cognitive-services
6+
author: aahill
7+
manager: nitinme
8+
zone_pivot_groups: programming-languages-set-fifteen
9+
10+
ms.service: cognitive-services
11+
ms.subservice: bing-autosuggest
12+
ms.topic: quickstart
13+
ms.date: 04/06/2020
14+
ms.author: aahi
15+
---
16+
# Quickstart: Use the Bing Autosuggest client library
17+
18+
::: zone pivot="programming-language-csharp"
19+
20+
[!INCLUDE [C# quickstart](../includes/quickstarts/autosuggest-client-library-csharp.md)]
21+
22+
::: zone-end
23+
24+
::: zone pivot="programming-language-go"
25+
26+
[!INCLUDE [Go quickstart](../includes/quickstarts/autosuggest-client-library-go.md)]
27+
28+
::: zone-end

articles/cognitive-services/Bing-Autosuggest/toc.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@
2626
href: quickstarts/ruby.md
2727
- name: Client library
2828
items:
29-
- name: C#
30-
href: quickstarts/csharp-sdk.md
31-
- name: Go
32-
href: quickstarts/go-sdk.md
29+
- name: Bing Autosuggest client libraries
30+
href: ./quickstarts/client-libraries.md
3331
- name: Tutorials
3432
items:
3533
- name: Single-page web app

articles/cognitive-services/Bing-Web-Search/index.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ conceptualContent:
190190
links:
191191
- text: Use C#
192192
itemType: quickstart
193-
url: ../Bing-Autosuggest/quickstarts/csharp.md
193+
url: ../bing-autosuggest/quickstarts/client-libraries.md?pivots=programming-language-csharp
194+
- text: Use Go
195+
itemType: quickstart
196+
url: ../Bing-Autosuggest/quickstarts/client-libraries.md?pivots=programming-language-go
194197
- text: Use Java
195198
itemType: quickstart
196199
url: ../Bing-Autosuggest/quickstarts/java.md

articles/zone-pivot-groups.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,15 @@ groups:
162162
title: Java
163163
- id: programming-language-python
164164
title: Python
165+
- id: programming-languages-set-fifteen
166+
# Owner: aahill
167+
title: Programming languages
168+
prompt: Choose a programming language
169+
pivots:
170+
- id: programming-language-csharp
171+
title: C#
172+
- id: programming-language-go
173+
title: Go
165174
# Service-specific groups
166175
- id: cogsvcs-text-analytics-features
167176
title: Text Analytics features

0 commit comments

Comments
 (0)