Skip to content

Commit 3613f32

Browse files
committed
AI Search - Add Search to website - FE updates
1 parent 8f29ffc commit 3613f32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ The search suggester, `sg`, is defined in the [schema file](https://github.com/A
4646

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

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

5151
## Client: Suggestions from the catalog
5252

5353
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.
5454

55-
:::code language="csharp" source="~/azure-search-static-web-app/client/src/components/SearchBar/SearchBar.js" :::
55+
:::code language="javascript" source="~/azure-search-static-web-app/client/src/components/SearchBar/SearchBar.jsx" :::
5656

5757
## Azure Function: Get specific document
5858

@@ -64,7 +64,7 @@ The [Document Lookup API](https://github.com/Azure-Samples/azure-search-static-w
6464

6565
This function API is called in the React app at `\client\src\pages\Details\Detail.js` as part of component initialization:
6666

67-
:::code language="csharp" source="~/azure-search-static-web-app/client/src/pages/Details/Details.js" :::
67+
:::code language="javascript" source="~/azure-search-static-web-app/client/src/pages/Details/Details.jsx" :::
6868

6969
## C# models to support function app
7070

0 commit comments

Comments
 (0)