Skip to content

Commit 0e7bd01

Browse files
committed
Addressed Dina's comments
1 parent 451a5dc commit 0e7bd01

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ 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. 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.
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. Though the Suggest API, partial strings are sent to the search engine as the user types, suggesting search terms such as book titles and authors across the documents in the search index, and returning a small list of matches.
3838

3939
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.
4040

@@ -48,15 +48,6 @@ Call the Azure Function in the React client with the following code.
4848

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

51-
<!-- ## Azure Function: Suggestions from the catalog
52-
53-
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.
54-
55-
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.
56-
57-
:::code language="csharp" source="~/azure-search-static-web-app/api/Suggest.cs" :::
58-
-->
59-
6051
## Client: Suggestions from the catalog
6152

6253
The Suggest function API is called in the React app at `\client\src\components\SearchBar\SearchBar.js` as part of the [Material UI's Autocomplete component](https://mui.com/material-ui/react-autocomplete/). This component uses the input text to search for authors and books that match the input text then displays those possible matches at selectable items in the drop-down list.

0 commit comments

Comments
 (0)