Skip to content

Commit 0f098c9

Browse files
authored
Merge pull request #105908 from john-par/1678688-adding-zone-pivots-bing-custom-search
1678688, adding zone pivots bing custom search
2 parents 16d1920 + c99bc1f commit 0f098c9

File tree

8 files changed

+105
-53
lines changed

8 files changed

+105
-53
lines changed

.openpublishing.redirection.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32618,6 +32618,21 @@
3261832618
"redirect_url": "/azure/cognitive-services/bing-web-search/language-support",
3261932619
"redirect_document_id": true
3262032620
},
32621+
{
32622+
"source_path": "articles/cognitive-services/Bing-Custom-Search/sdk-csharp-quick-start.md",
32623+
"redirect_url": "/azure/cognitive-services/bing-custom-search/quickstarts/client-libraries",
32624+
"redirect_document_id": false
32625+
},
32626+
{
32627+
"source_path": "articles/cognitive-services/Bing-Custom-Search/sdk-java-quickstart.md",
32628+
"redirect_url": "/azure/cognitive-services/bing-custom-search/quickstarts/client-libraries",
32629+
"redirect_document_id": false
32630+
},
32631+
{
32632+
"source_path": "articles/cognitive-services/Bing-Custom-Search/sdk-python-quickstart.md",
32633+
"redirect_url": "/azure/cognitive-services/bing-custom-search/quickstarts/client-libraries",
32634+
"redirect_document_id": false
32635+
},
3262132636
{
3262232637
"source_path": "articles/cognitive-services/Bing-Autosuggest/bing-autosuggest-supported-languages.md",
3262332638
"redirect_url": "/azure/cognitive-services/bing-autosuggest/language-support",

articles/cognitive-services/Bing-Custom-Search/sdk-csharp-quick-start.md renamed to articles/cognitive-services/Bing-Custom-Search/includes/quickstarts/custom-search-client-library-csharp.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
---
2-
title: "Quickstart: Call your Bing Custom Search endpoint using the C# SDK"
2+
title: Bing Custom Search C# client library quickstart
33
titleSuffix: Azure Cognitive Services
4-
description: Use this quickstart to begin requesting search results from your Bing Custom Search instance using the C# SDK.
54
services: cognitive-services
6-
author: swhite-msft
5+
author: aahill
76
manager: nitinme
87
ms.service: cognitive-services
9-
ms.subservice: bing-custom-search
10-
ms.topic: quickstart
11-
ms.date: 12/09/2019
12-
ms.author: scottwhi
8+
ms.topic: include
9+
ms.date: 02/27/2020
10+
ms.author: aahi
1311
---
1412

15-
# Quickstart: Call your Bing Custom Search endpoint using the C# SDK
13+
Get started with the Bing Custom Search client library for C#. Follow these steps to install the package and try out the example code for basic tasks. The Bing Custom Search API enables you to create tailored, ad-free search experiences for topics that you care about. The source code for this sample can be found on [GitHub](https://github.com/Azure-Samples/cognitive-services-dotnet-sdk-samples/tree/master/BingSearchv7/BingCustomWebSearch).
14+
15+
Use the Bing Custom Search client library for C# to:
16+
* Find search results on the web, from your Bing Custom Search instance.
17+
18+
[Reference documentation](https://docs.microsoft.com/dotnet/api/overview/azure/cognitiveservices/client/bingcustomsearch?view=azure-dotnet) | [Library source code](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/cognitiveservices/Search.BingCustomSearch) | [Package (NuGet)](https://www.nuget.org/packages/Microsoft.Azure.CognitiveServices.Search.CustomSearch/1.2.0) | [Samples](https://github.com/Azure-Samples/cognitive-services-dotnet-sdk-samples)
1619

17-
Use this quickstart to begin requesting search results from your Bing Custom Search instance, using the C# SDK. While Bing Custom Search has a REST API compatible with most programming languages, the Bing Custom Search SDK provides an easy way to integrate the service into your applications. The source code for this sample can be found on [GitHub](https://github.com/Azure-Samples/cognitive-services-dotnet-sdk-samples/tree/master/BingSearchv7/BingCustomWebSearch).
1820

1921
## Prerequisites
2022

21-
- A Bing Custom Search instance. See [Quickstart: Create your first Bing Custom Search instance](quick-start.md) for more information.
23+
- A Bing Custom Search instance. See [Quickstart: Create your first Bing Custom Search instance](../../quick-start.md) for more information.
2224
- Microsoft [.NET Core](https://www.microsoft.com/net/download/core)
2325
- Any edition of [Visual Studio 2017 or later](https://www.visualstudio.com/downloads/)
2426
- If you are using Linux/MacOS, this application can be run using [Mono](https://www.mono-project.com/).
@@ -28,7 +30,7 @@ Use this quickstart to begin requesting search results from your Bing Custom Sea
2830
- Microsoft.Rest.ClientRuntime.Azure
2931
- Newtonsoft.Json
3032

31-
[!INCLUDE [cognitive-services-bing-news-search-prerequisites](../../../includes/cognitive-services-bing-custom-search-signup-requirements.md)]
33+
[!INCLUDE [cognitive-services-bing-custom-search-prerequisites](~/includes/cognitive-services-bing-custom-search-signup-requirements.md)]
3234

3335

3436
## Create and initialize the application
@@ -84,4 +86,4 @@ Use this quickstart to begin requesting search results from your Bing Custom Sea
8486
## Next steps
8587

8688
> [!div class="nextstepaction"]
87-
> [Build a Custom Search web app](./tutorials/custom-search-web-page.md)
89+
> [Build a Custom Search web app](../../tutorials/custom-search-web-page.md)

articles/cognitive-services/Bing-Custom-Search/sdk-java-quickstart.md renamed to articles/cognitive-services/Bing-Custom-Search/includes/quickstarts/custom-search-client-library-java.md

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
---
2-
title: "Quickstart: Bing Custom Search client library for Java"
3-
description: Get started with the Bing Custom Search client library for Java by requesting search results from your Bing Custom Search instance in this quickstart.
2+
title: Bing Custom Search Java 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:
9-
ms.topic: quickstart
10-
ms.date: 12/09/2019
8+
ms.topic: include
9+
ms.date: 02/27/2020
1110
ms.author: aahi
1211
---
1312

14-
15-
# Quickstart: Bing Custom Search client library for Java
16-
17-
Get started with the Bing Custom Search client library for Java. Follow these steps to install the package and try out the example code for basic tasks. The Bing Custom Search API enables you to create tailored, ad-free search experiences for topics that you care about.
13+
Get started with the Bing Custom Search client library for Java. Follow these steps to install the package and try out the example code for basic tasks. The Bing Custom Search API enables you to create tailored, ad-free search experiences for topics that you care about. The source code for this sample can be found on [GitHub](https://github.com/Azure-Samples/cognitive-services-java-sdk-samples/tree/master/Search/BingCustomSearch)
1814

1915
Use the Bing Custom Search client library for Java to:
2016

@@ -27,16 +23,9 @@ Use the Bing Custom Search client library for Java to:
2723
* Azure subscription - [Create one for free](https://azure.microsoft.com/free/).
2824
* The current version of the [Java Development Kit (JDK)](https://www.oracle.com/technetwork/java/javase/downloads/index.html).
2925
* The [Gradle build tool](https://gradle.org/install/), or another dependency manager.
30-
* A Bing Custom Search instance. See [Quickstart: Create your first Bing Custom Search instance](quick-start.md) for more information.
31-
32-
## Setting up
33-
34-
### Create a Bing Custom Search Azure resource
35-
36-
Azure Cognitive Services are represented by Azure resources that you subscribe to. Create a resource for Bing Custom Search using the [Azure portal](https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account) or [Azure CLI](https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account-cli) on your local machine. You can also:
26+
* A Bing Custom Search instance. See [Quickstart: Create your first Bing Custom Search instance](../../quick-start.md) for more information.
3727

38-
* Get a [trial key](https://azure.microsoft.com/try/cognitive-services/#decision) valid for 7 days for free. After signing up, it will be available on the [Azure website](https://azure.microsoft.com/try/cognitive-services/my-apis/).
39-
* View your resource on the [Azure portal](https://portal.azure.com/).
28+
[!INCLUDE [cognitive-services-bing-custom-search-prerequisites](~/includes/cognitive-services-bing-custom-search-signup-requirements.md)]
4029

4130
After you get a key from your trial subscription or resource, [create an environment variable](https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account#configure-an-environment-variable-for-authentication) for the key, named `AZURE_BING_CUSTOM_SEARCH_API_KEY`.
4231

@@ -147,10 +136,10 @@ gradle run
147136

148137
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.
149138

150-
* [Portal](../cognitive-services-apis-create-account.md#clean-up-resources)
151-
* [Azure CLI](../cognitive-services-apis-create-account-cli.md#clean-up-resources)
139+
* [Portal](../../../cognitive-services-apis-create-account.md#clean-up-resources)
140+
* [Azure CLI](../../../cognitive-services-apis-create-account-cli.md#clean-up-resources)
152141

153142
## Next steps
154143

155144
> [!div class="nextstepaction"]
156-
> [Build a Custom Search web app](./tutorials/custom-search-web-page.md)
145+
> [Build a Custom Search web app](../../tutorials/custom-search-web-page.md)

articles/cognitive-services/Bing-Custom-Search/sdk-python-quickstart.md renamed to articles/cognitive-services/Bing-Custom-Search/includes/quickstarts/custom-search-client-library-python.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
11
---
2-
title: "Quickstart: Call your Bing Custom Search endpoint using the Python SDK"
2+
title: Bing Custom Search Python client library quickstart
33
titleSuffix: Azure Cognitive Services
4-
description: Use this quickstart to begin requesting search results from your Bing Custom Search instance using the Python SDK.
54
services: cognitive-services
65
author: aahill
76
manager: nitinme
87
ms.service: cognitive-services
9-
ms.subservice: bing-custom-search
10-
ms.topic: quickstart
11-
ms.date: 02/12/2020
8+
ms.topic: include
9+
ms.date: 02/27/2020
1210
ms.author: aahi
1311
---
1412

15-
# Quickstart: Call your Bing Custom Search endpoint using the Python SDK
13+
Get started with the Bing Custom Search client library for Python. Follow these steps to install the package and try out the example code for basic tasks. The Bing Custom Search API enables you to create tailored, ad-free search experiences for topics that you care about.The source code for this sample can be found on [GitHub](https://github.com/Azure-Samples/cognitive-services-python-sdk-samples/blob/master/samples/search/custom_search_samples.py).
14+
15+
Use the Bing Custom Search client library for Python to:
16+
* Find search results on the web, from your Bing Custom Search instance.
17+
18+
[Reference documentation](https://docs.microsoft.com/python/api/overview/azure/cognitiveservices/customsearch?view=azure-python) | [Library source code](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/cognitiveservices/azure-cognitiveservices-search-customsearch) | [Package (PyPi)](https://pypi.org/project/azure-cognitiveservices-search-customsearch/) | [Samples](https://github.com/Azure-Samples/cognitive-services-python-sdk-samples/)
1619

17-
Use this quickstart to begin requesting search results from your Bing Custom Search instance, using the Python SDK. While Bing Custom Search has a REST API compatible with most programming languages, the Bing Custom Search SDK provides an easy way to integrate the service into your applications. The source code for this sample can be found on [GitHub](https://github.com/Azure-Samples/cognitive-services-python-sdk-samples/blob/master/samples/search/custom_search_samples.py) with additional error handling and annotations.
1820

1921
## Prerequisites
2022

21-
- A Bing Custom Search instance. See [Quickstart: Create your first Bing Custom Search instance](quick-start.md) for more information.
23+
- A Bing Custom Search instance. See [Quickstart: Create your first Bing Custom Search instance](../../quick-start.md) for more information.
2224
- Python [2.x or 3.x](https://www.python.org/)
2325
- The [Bing Custom Search SDK for Python](https://pypi.org/project/azure-cognitiveservices-search-customsearch/)
2426

25-
## Install the Python SDK
27+
[!INCLUDE [cognitive-services-bing-custom-search-prerequisites](~/includes/cognitive-services-bing-custom-search-signup-requirements.md)]
28+
29+
## Install the Python client library
2630

27-
Install the Bing Custom Search SDK with the following command.
31+
Install the Bing Custom Search client library with the following command.
2832

2933
```Console
3034
python -m pip install azure-cognitiveservices-search-customsearch
@@ -78,4 +82,4 @@ else:
7882
## Next steps
7983

8084
> [!div class="nextstepaction"]
81-
> [Build a Custom Search web app](./tutorials/custom-search-web-page.md)
85+
> [Build a Custom Search web app](../../tutorials/custom-search-web-page.md)
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: 'Quickstart: Use the Bing Custom Search client library'
3+
titleSuffix: Azure Cognitive Services
4+
description: The Custom Search 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-eleven
9+
10+
ms.service: cognitive-services
11+
ms.subservice: bing-custom-search
12+
ms.topic: quickstart
13+
ms.date: 02/27/2020
14+
ms.author: aahi
15+
---
16+
17+
# Quickstart: Use the Bing Custom Search client library
18+
19+
::: zone pivot="programming-language-csharp"
20+
21+
[!INCLUDE [C# quickstart](../includes/quickstarts/custom-search-client-library-csharp.md)]
22+
23+
::: zone-end
24+
25+
::: zone pivot="programming-language-python"
26+
27+
[!INCLUDE [Python quickstart](../includes/quickstarts/custom-search-client-library-python.md)]
28+
29+
::: zone-end
30+
31+
::: zone pivot="programming-language-java"
32+
33+
[!INCLUDE [Java quickstart](../includes/quickstarts/custom-search-client-library-java.md)]
34+
35+
::: zone-end

articles/cognitive-services/Bing-Custom-Search/toc.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,8 @@
2727
href: call-endpoint-python.md
2828
- name: SDK
2929
items:
30-
- name: Using C#
31-
href: sdk-csharp-quick-start.md
32-
- name: Using Python
33-
href: sdk-python-quickstart.md
34-
- name: Using Java
35-
href: sdk-java-quickstart.md
30+
- name: Bing Custom Search client libraries
31+
href: ./quickstarts/client-libraries.md
3632
- name: Tutorials
3733
items:
3834
- name: Build a Custom Search web page

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ conceptualContent:
6666
url: ../bing-custom-search/quick-start.md
6767
- text: Use C#
6868
itemType: quickstart
69-
url: ../bing-custom-search/sdk-csharp-quick-start.md
69+
url: ../bing-custom-search/quickstarts/client-libraries.md?pivots=programming-language-csharp
7070
- text: Use Java
7171
itemType: quickstart
72-
url: ../bing-custom-search/sdk-java-quickstart.md
72+
url: ../bing-custom-search/quickstarts/client-libraries.md?pivots=programming-language-java
7373
- text: Use Python
7474
itemType: quickstart
75-
url: ../bing-custom-search/sdk-python-quickstart.md
75+
url: ../bing-custom-search/quickstarts/client-libraries.md?pivots=programming-language-python
7676
- text: Create a single page web-app
7777
itemType: tutorial
7878
url: ../bing-custom-search/tutorials/custom-search-web-page.md

articles/zone-pivot-groups.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,17 @@ groups:
151151
title: JavaScript
152152
- id: programming-language-python
153153
title: Python
154+
- id: programming-languages-set-eleven
155+
# Owner: aahill
156+
title: Programming languages
157+
prompt: Choose a programming language
158+
pivots:
159+
- id: programming-language-csharp
160+
title: C#
161+
- id: programming-language-java
162+
title: Java
163+
- id: programming-language-python
164+
title: Python
154165
# Service-specific groups
155166
- id: cogsvcs-text-analytics-features
156167
title: Text Analytics features

0 commit comments

Comments
 (0)