You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note your **Search resource name**. You'll need this to connect the Azure Function app to your search resource.
9
+
10
+
> [!CAUTION]
11
+
> While you may be tempted to use your search admin key in the Azure Function, that isn't following the principle of least privilege. The Azure Function will use the query key to conform to least privilege.
Once the upload completes, the search index is ready to use. Review your new index.
10
+
11
+
1. In Visual Studio Code, open the Azure Cognitive Search extension and select your Search resource.
12
+
13
+
:::image type="content" source="../media/tutorial-javascript-create-load-index/visual-studio-code-search-extension-view-resource.png" alt-text="Screenshot of Visual Studio Code using the search extension.":::
14
+
15
+
1. Expand Indexes, then Documents, then `good-books`, then select a doc to see all the document-specific data.
16
+
17
+
:::image type="content" source="../media/tutorial-javascript-create-load-index/visual-studio-code-search-extension-view-docs.png" lightbox="../media/tutorial-javascript-create-load-index/visual-studio-code-search-extension-view-docs.png" alt-text="Expandable screenshot of Visual Studio Code showing documents listed in an index.":::
Use the following git command in the Visual Studio Code integrated terminal at the `bulk-insert` directory, to roll back the changes. They aren't needed to continue the tutorial and you shouldn't save or push these secrets to your repo.
Copy file name to clipboardExpand all lines: articles/search/tutorial-javascript-create-load-index.md
+4-18Lines changed: 4 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ author: diberry
7
7
ms.author: diberry
8
8
ms.service: cognitive-search
9
9
ms.topic: tutorial
10
-
ms.date: 10/26/2022
10
+
ms.date: 11/01/2022
11
11
ms.custom: devx-track-js
12
12
ms.devlang: javascript
13
13
---
@@ -83,30 +83,16 @@ The script uses the Azure SDK for Cognitive Search:
83
83
84
84
## Review the new Search Index
85
85
86
-
Once the upload completes, the Search Index is ready to use. Review your new Index.
87
-
88
-
1. In Visual Studio Code, open the Azure Cognitive Search extension and select your Search resource.
89
-
90
-
:::image type="content" source="media/tutorial-javascript-create-load-index/visual-studio-code-search-extension-view-resource.png" alt-text="In Visual Studio Code, open the Azure Cognitive Search extension and open your Search resource.":::
91
-
92
-
1. Expand Indexes, then Documents, then `good-books`, then select a doc to see all the document-specific data.
93
-
94
-
:::image type="content" source="media/tutorial-javascript-create-load-index/visual-studio-code-search-extension-view-docs.png" lightbox="media/tutorial-javascript-create-load-index/visual-studio-code-search-extension-view-docs.png" alt-text="Expand Indexes, then `good-books`, then select a doc.":::
Use the following git command in the VS Code integrated terminal at the `bulk-insert` directory, to roll back the changes. They aren't needed to continue the tutorial and you shouldn't save or push these secrets to your repo.
> While you may be tempted to use your Search admin key in the Azure Function, that isn't following the principle of least privilege. The Azure Function will use the query key to conform to least privilege.
0 commit comments