Skip to content

Commit 1237c07

Browse files
committed
update line numbers
1 parent e61d479 commit 1237c07

File tree

2 files changed

+25
-7
lines changed

2 files changed

+25
-7
lines changed

articles/search/tutorial-csharp-overview.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The [sample](https://github.com/Azure-Samples/azure-search-dotnet-samples/tree/m
2929

3030
|App|Purpose|GitHub<br>Repository<br>Location|
3131
|--|--|--|
32-
|Client|React app (presentation layer) to display books, with search. It calls the Azure Function app. |[/search-website-functions-v4/](https://github.com/Azure-Samples/azure-search-dotnet-samples/tree/master/search-website-functions-v4/client)|
32+
|Client|React app (presentation layer) to display books, with search. It calls the Azure Function app. |[/search-website-functions-v4/client](https://github.com/Azure-Samples/azure-search-dotnet-samples/tree/master/search-website-functions-v4/client)|
3333
|Server|Azure .NET Function app (business layer) - calls the Azure Cognitive Search API using .NET SDK |[/search-website-functions-v4/api](https://github.com/Azure-Samples/azure-search-dotnet-samples/tree/master/search-website-functions-v4/api)|
3434
|Bulk insert|.NET file to create the index and add documents to it.|[/search-website-functions-v4/bulk-insert](https://github.com/Azure-Samples/azure-search-dotnet-samples/tree/master/search-website-functions-v4/bulk-insert)|
3535

@@ -53,7 +53,25 @@ Forking the sample repository is critical to be able to deploy the Static Web Ap
5353

5454
Complete the fork process in your web browser with your GitHub account. This tutorial uses your fork as part of the deployment to an Azure Static Web App.
5555

56-
[!INCLUDE [tutorial-fork-and-clone](includes/tutorial-add-search-website-fork-and-clone.md)]
56+
1. At a Bash terminal, download your forked sample application to your local computer.
57+
58+
Replace `YOUR-GITHUB-ALIAS` with your GitHub alias.
59+
60+
```bash
61+
git clone https://github.com/YOUR-GITHUB-ALIAS/azure-search-dotnet-samples
62+
```
63+
64+
1. At the same Bash terminal, go into your forked repository for this website search example:
65+
66+
```bash
67+
cd azure-search-dotnet-samples
68+
```
69+
70+
1. Use the Visual Studio Code command, `code .` to open your forked repository. The remaining tasks are accomplished from Visual Studio Code, unless specified.
71+
72+
```bash
73+
code .
74+
```
5775

5876
## Create a resource group for your Azure resources
5977

articles/search/tutorial-csharp-search-query-integration.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,29 +31,29 @@ The Function app authenticates through the SDK to the cloud-based Cognitive Sear
3131

3232
## Configure secrets in a local.settings.json file
3333

34-
:::code language="javascript" source="~/azure-search-javascript-samples/search-website-functions-v4/api/config.js":::
34+
:::code language="json" source="~/azure-search-dotnet-samples/search-website-functions-v4/api/local.settings.json":::
3535

3636
## Azure Function: Search the catalog
3737

3838
The `Search` [API](https://github.com/Azure-Samples/azure-search-dotnet-samples/blob/master/search-website-functions-v4/api/Search.cs) takes a search term and searches across the documents in the Search Index, returning a list of matches.
3939

4040
The Azure Function pulls in the Search configuration information, and fulfills the query.
4141

42-
:::code language="csharp" source="~/azure-search-dotnet-samples/search-website-functions-v4/api/Search.cs" highlight="22-24, 55" :::
42+
:::code language="csharp" source="~/azure-search-dotnet-samples/search-website-functions-v4/api/Search.cs" highlight="18-20, 40-44, 57" :::
4343

4444
## Client: Search from the catalog
4545

4646
Call the Azure Function in the React client with the following code.
4747

48-
:::code language="javascript" source="~/azure-search-dotnet-samples/search-website-functions-v4/client/src/pages/Search/Search.js" highlight="40-51" :::
48+
:::code language="javascript" source="~/azure-search-dotnet-samples/search-website-functions-v4/client/src/pages/Search/Search.js" highlight="41-52" :::
4949

5050
## Azure Function: Suggestions from the catalog
5151

5252
The `Suggest` [API](https://github.com/Azure-Samples/azure-search-dotnet-samples/blob/master/search-website-functions-v4/api/Suggest.cs) takes a search term while a user is typing and suggests search terms such as book titles and authors across the documents in the search index, returning a small list of matches.
5353

5454
The search suggester, `sg`, is defined in the [schema file](https://github.com/Azure-Samples/azure-search-dotnet-samples/blob/master/search-website-functions-v4/bulk-insert/BookSearchIndex.cs) used during bulk upload.
5555

56-
:::code language="csharp" source="~/azure-search-dotnet-samples/search-website-functions-v4/api/Suggest.cs" highlight="21-23, 50-52" :::
56+
:::code language="csharp" source="~/azure-search-dotnet-samples/search-website-functions-v4/api/Suggest.cs" highlight="16-18, 39-44, 52" :::
5757

5858
## Client: Suggestions from the catalog
5959

@@ -65,7 +65,7 @@ The Suggest function API is called in the React app at `\client\src\components\S
6565

6666
The `Lookup` [API](https://github.com/Azure-Samples/azure-search-dotnet-samples/blob/master/search-website-functions-v4/api/Lookup.cs) takes an ID and returns the document object from the Search Index.
6767

68-
:::code language="csharp" source="~/azure-search-dotnet-samples/search-website-functions-v4/api/Lookup.cs" highlight="19-21, 42" :::
68+
:::code language="csharp" source="~/azure-search-dotnet-samples/search-website-functions-v4/api/Lookup.cs" highlight="16-18, 41-46, 48" :::
6969

7070
## Client: Get specific document
7171

0 commit comments

Comments
 (0)