Skip to content

Commit 518edd6

Browse files
authored
Merge pull request #273458 from HeidiSteen/heidist-freshness
[azure search] Partial freshness updates on search traffic analytics (feature has bugs)
2 parents c96c9c6 + 86af62f commit 518edd6

16 files changed

+88
-164
lines changed

articles/search/includes/tutorial-add-search-website-create-app.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
---
22
ms.topic: include
3-
ms.date: 09/21/2023
3+
ms.date: 04/25/2024
44
author: HeidiSteen
55
ms.author: heidist
66
ms.service: cognitive-search
77
ms.custom:
88
- ignite-2023
99
---
1010

11-
Deploy the search-enabled website as an Azure Static Web Apps site. This deployment includes both the React app and the Function app.
11+
Deploy the search-enabled website as an Azure Static Web Apps site. This deployment includes both the React app for the web pages, and the Function app for search operations.
1212

1313
The static web app pulls the information and files for deployment from GitHub using your fork of the samples repository.
1414

1515
## Create a Static Web App in Visual Studio Code
1616

17-
1. In Visual Studio Code, open a folder at the repository root (for example, `azure-search-javascript-samples`).
17+
1. In Visual Studio Code, make sure you're at the repository root, and not the bulk-insert folder (for example, `azure-search-javascript-samples`).
1818

1919
1. Select **Azure** from the Activity Bar, then open **Resources** from the side bar.
2020

@@ -40,7 +40,7 @@ The static web app pulls the information and files for deployment from GitHub us
4040
|Select a location for new resources. | For Node.js: Select `West US 2` during the Azure Function programming model (PM) v4 preview. For C# and Python, select a region near you. |
4141
|Choose build preset to configure default project structure. |Select **Custom**. |
4242
|Select the location of your client application code | `search-website-functions-v4/client`<br><br>This is the path, from the root of the repository, to your static web app. |
43-
|Select the location of your Azure Functions code | `search-website-functions-v4/api`<br><br>This is the path, from the root of the repository, to your static web app. If there are no other functions in the repository, you won't be prompted for the function code location. Currently, you'll need to perform extra steps to ensure the function code location is correct. These steps are performed after the resource is created and are documented in this article. |
43+
|Select the location of your Azure Functions code | `search-website-functions-v4/api`<br><br>This is the path, from the root of the repository, to your static web app. If there are no other functions in the repository, you won't be prompted for the function code location. *Currently, you'll need to perform extra steps to ensure the function code location is correct. These steps are performed after the resource is created and are documented in this article.* |
4444
|Enter the path of your build output... | `build`<br><br>This is the path, from your static web app, to your generated files.|
4545

4646
If you get an error about an incorrect region, make sure the resource group and static web app resource are in one of the supported regions listed in the error response.
@@ -55,7 +55,7 @@ The static web app pulls the information and files for deployment from GitHub us
5555

5656
:::image type="content" source="../media/tutorial-javascript-static-web-app/visual-studio-code-azure-activity-log.png" alt-text="Screenshot of the Activity Log in Visual Studio Code." border="true":::
5757

58-
1. Currently, the YML file is created with erroneous path syntax for the Azure function code. Use this workaround to correct the syntax. You can perform this step as soon as the YML file is created. A new workflow will launch as soon as you push the updates:
58+
1. *Currently, the YML file is created with erroneous path syntax for the Azure function code*. Use this workaround to correct the syntax and rerun the workflow. You can perform this step as soon as the YML file is created. A new workflow launches as soon as you push the updates:
5959

6060
1. In Visual Studio Code explorer, open the `./.github/workflows/` directory.
6161

@@ -113,7 +113,7 @@ The static web app pulls the information and files for deployment from GitHub us
113113

114114
1. Keep this query key to use in the next section. The query key authorizes read access to a search index.
115115

116-
## Add configuration settings in Azure portal
116+
## Add environment variables in Azure portal
117117

118118
The Azure Function app won't return search data until the search secrets are in settings.
119119

@@ -122,9 +122,9 @@ The Azure Function app won't return search data until the search secrets are in
122122

123123
:::image type="content" source="../media/tutorial-javascript-static-web-app/open-static-web-app-in-azure-portal.png" alt-text="Screenshot of Visual Studio Code showing Azure Static Web Apps explorer with the Open in Portal option shown.":::
124124

125-
1. Select **Configuration** then select **+ Add**.
125+
1. Select **Environment variables** then select **+ Add application setting**.
126126

127-
:::image type="content" source="../media/tutorial-javascript-static-web-app/add-new-application-setting-to-static-web-app-in-portal.png" alt-text="Screenshot of Visual Studio Code showing the Azure Static Web Apps explorer with the Configuration option shown.":::
127+
:::image type="content" source="../media/tutorial-javascript-static-web-app/add-new-application-setting-to-static-web-app-in-portal.png" alt-text="Screenshot of the static web app's environment variables page in the Azure portal.":::
128128

129129
1. Add each of the following settings:
130130

@@ -137,7 +137,7 @@ The Azure Function app won't return search data until the search secrets are in
137137

138138
Azure AI Search requires different syntax for filtering collections than it does for strings. Add a `*` after a field name to denote that the field is of type `Collection(Edm.String)`. This allows the Azure Function to add filters correctly to queries.
139139

140-
1. Select **Save** to save the settings.
140+
1. Check your settings to make sure they look like the following screenshot.
141141

142142
:::image type="content" source="../media/tutorial-javascript-static-web-app/save-new-application-setting-to-static-web-app-in-portal.png" alt-text="Screenshot of browser showing Azure portal with the button to save the settings for your app.":::
143143

@@ -147,6 +147,8 @@ The Azure Function app won't return search data until the search secrets are in
147147

148148
:::image type="content" source="../media/tutorial-javascript-static-web-app/visual-studio-code-extension-fresh-resource-2.png" alt-text="Screenshot of Visual Studio Code showing the Azure Static Web Apps explorer with the new application settings." border="true":::
149149

150+
If you don't see the application settings, revisit the steps for updating and relaunching the GitHub workflow.
151+
150152
## Use search in your static web app
151153

152154
1. In Visual Studio Code, open the [Activity bar](https://code.visualstudio.com/docs/getstarted/userinterface), and select the Azure icon.

articles/search/includes/tutorial-add-search-website-what-sample-does.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
ms.topic: include
3-
ms.date: 07/18/2023
3+
ms.date: 04/25/2024
44
author: HeidiSteen
55
ms.author: heidist
66
ms.service: cognitive-search
-762 Bytes
Loading
-114 Bytes
Loading
2.85 KB
Loading
-1.24 KB
Loading
49.4 KB
Loading
Loading
Loading

0 commit comments

Comments
 (0)