Skip to content

Commit 407a27e

Browse files
committed
static web app tutorial update, consolidate search/suggestions
1 parent 3e5e0b4 commit 407a27e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: diberry
77
ms.author: diberry
88
ms.service: azure-ai-search
99
ms.topic: tutorial
10-
ms.date: 01/17/2025
10+
ms.date: 01/21/2025
1111
ms.custom:
1212
- devx-track-csharp
1313
- devx-track-dotnet
@@ -34,7 +34,9 @@ The function app authenticates through the SDK to the cloud-based Azure AI Searc
3434

3535
## Azure Function: Search the catalog
3636

37-
The [Search API](https://github.com/Azure-Samples/azure-search-static-web-app/blob/main/api/Search.cs) takes a search term and searches across the documents in the search index, returning a list of matches.
37+
The [Search API](https://github.com/Azure-Samples/azure-search-static-web-app/blob/main/api/Search.cs) takes a search term and searches across the documents in the search index, returning a list of matches. As the user types, the partial string is sent to the search engine, suggesting search terms such as book titles and authors across the documents in the search index, and returning a small list of matches.
38+
39+
The search suggester, `sg`, is defined in the [schema file](https://github.com/Azure-Samples/azure-search-static-web-app/blob/main/bulk-insert/BookSearchIndex.cs) used during bulk upload.
3840

3941
The Azure function pulls in the search configuration information, and fulfills the query.
4042

@@ -46,14 +48,14 @@ Call the Azure Function in the React client with the following code.
4648

4749
:::code language="csharp" source="~/azure-search-static-web-app/client/src/pages/Search/Search.js" :::
4850

49-
## Azure Function: Suggestions from the catalog
51+
<!-- ## Azure Function: Suggestions from the catalog
5052
5153
The [Suggest API](https://github.com/Azure-Samples/azure-search-static-web-app/blob/main/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.
5254
5355
The search suggester, `sg`, is defined in the [schema file](https://github.com/Azure-Samples/azure-search-static-web-app/blob/main/bulk-insert/BookSearchIndex.cs) used during bulk upload.
5456
5557
:::code language="csharp" source="~/azure-search-static-web-app/api/Suggest.cs" :::
56-
58+
-->
5759
## Client: Suggestions from the catalog
5860

5961
The Suggest function API is called in the React app at `\client\src\components\SearchBar\SearchBar.js` as part of component initialization:

0 commit comments

Comments
 (0)