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
Copy file name to clipboardExpand all lines: articles/search/samples-dotnet.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ author: HeidiSteen
8
8
ms.author: heidist
9
9
ms.service: cognitive-search
10
10
ms.topic: conceptual
11
-
ms.date: 10/01/2021
11
+
ms.date: 09/09/2022
12
12
---
13
13
14
14
# .NET (C#) code samples for Azure Cognitive Search
@@ -58,7 +58,7 @@ Code samples from the Cognitive Search team demonstrate features and workflows.
58
58
59
59
## Other samples
60
60
61
-
The following samples are also published by the Cognitive Search team, but are not referenced in documentation. Associated readme files provide usage instructions.
61
+
The following samples are also published by the Cognitive Search team, but aren't referenced in documentation. Associated readme files provide usage instructions.
Copy file name to clipboardExpand all lines: articles/search/samples-java.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ author: HeidiSteen
8
8
ms.author: heidist
9
9
ms.service: cognitive-search
10
10
ms.topic: conceptual
11
-
ms.date: 01/27/2021
11
+
ms.date: 09/09/2022
12
12
---
13
13
14
14
# Java code samples for Azure Cognitive Search
@@ -42,16 +42,16 @@ Code samples from the Cognitive Search team demonstrate features and workflows.
42
42
43
43
| Samples | Article |
44
44
|---------|-------------|
45
-
|[quickstart](https://github.com/Azure-Samples/azure-search-java-samples/tree/java-rest-api/quickstart)| Source code for [Quickstart: Create a search index in Java and REST](search-get-started-java.md). This sample has not been updated for the Java SDK. It calls the REST APIs. |
45
+
|[quickstart](https://github.com/Azure-Samples/azure-search-java-samples/tree/java-rest-api/quickstart)| Source code for [Quickstart: Create a search index in Java and REST](search-get-started-java.md). This sample hasn't been updated for the Java SDK. It calls the REST APIs. |
46
46
47
47
> [!Tip]
48
48
> Try the [Samples browser](/samples/browse/?languages=java&products=azure-cognitive-search) to search for Microsoft code samples in GitHub, filtered by product, service, and language.
49
49
50
50
## Other samples
51
51
52
-
The following samples are also published by the Cognitive Search team, but are not referenced in documentation. Associated readme files provide usage instructions.
52
+
The following samples are also published by the Cognitive Search team, but aren't referenced in documentation. Associated readme files provide usage instructions.
53
53
54
54
| Samples | Description |
55
55
|---------|-------------|
56
56
|[search-java-getting-started](https://github.com/Azure-Samples/azure-search-java-samples/tree/master/search-java-getting-started)| Uses the Java SDK client library to create, load, and query a search index. This sample is currently standalone. |
57
-
|[search-java-indexer-demo](https://github.com/Azure-Samples/azure-search-java-samples/tree/java-rest-api/search-java-indexer-demo)| Demonstrates an Azure Cosmos DB indexer in Java. This sample has not been updated for the Java SDK. It calls the REST APIs.|
57
+
|[search-java-indexer-demo](https://github.com/Azure-Samples/azure-search-java-samples/tree/java-rest-api/search-java-indexer-demo)| Demonstrates an Azure Cosmos DB indexer in Java. This sample hasn't been updated for the Java SDK. It calls the REST APIs.|
Copy file name to clipboardExpand all lines: articles/search/samples-javascript.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ author: HeidiSteen
8
8
ms.author: heidist
9
9
ms.service: cognitive-search
10
10
ms.topic: conceptual
11
-
ms.date: 06/11/2021
11
+
ms.date: 09/09/2022
12
12
---
13
13
14
14
# JavaScript code samples for Azure Cognitive Search
@@ -60,7 +60,7 @@ Code samples from the Cognitive Search team demonstrate features and workflows.
60
60
61
61
## Other samples
62
62
63
-
The following samples are also published by the Cognitive Search team, but are not referenced in documentation. Associated readme files provide usage instructions.
63
+
The following samples are also published by the Cognitive Search team, but aren't referenced in documentation. Associated readme files provide usage instructions.
Copy file name to clipboardExpand all lines: articles/search/search-security-get-encryption-keys.md
+34-16Lines changed: 34 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,15 @@ author: HeidiSteen
8
8
ms.author: heidist
9
9
ms.service: cognitive-search
10
10
ms.topic: conceptual
11
-
ms.date: 06/21/2021
11
+
ms.date: 09/09/2022
12
12
ms.custom: devx-track-azurepowershell
13
13
---
14
14
15
15
# Find encrypted objects and information
16
16
17
17
In Azure Cognitive Search, customer-managed encryption keys are created, stored, and managed in Azure Key Vault. If you need to determine whether an object is encrypted, or what key name or version was used in Azure Key Vault, use the REST API or an Azure SDK to retrieve the **encryptionKey** property from the object definition in your search service.
18
18
19
-
Objects that are not encrypted with a customer-managed key will have an empty **encryptionKey** property. Otherwise, you might see a definition similar to the following example.
19
+
Objects that aren't encrypted with a customer-managed key will have an empty **encryptionKey** property. Otherwise, you might see a definition similar to the following example.
20
20
21
21
```json
22
22
"encryptionKey": {
@@ -34,47 +34,65 @@ The **encryptionKey** construct is the same for all encrypted objects. It's a fi
34
34
35
35
## Get the admin API key
36
36
37
-
Before you can retrieve object definitions from a search service, you will need to provide an admin API key. Admin API keys are required on requests that query for object definitions and metadata. The easiest way to get the admin API key is through the portal.
37
+
Before you can retrieve object definitions from a search service, you'll need to provide an admin API key. Admin API keys are required on requests that query for object definitions and metadata. The easiest way to get the admin API key is through the portal.
38
38
39
39
1. Sign in to the [Azure portal](https://portal.azure.com/) and open the search service overview page.
40
40
41
-
1. On the left side, click**Keys** and copy an admin API. An admin key is required for index and synonym map retrieval.
41
+
1. On the left side, select**Keys** and copy an admin API.
42
42
43
-
For the remaining steps, switch to PowerShell and the REST API. The portal does not show encryption key information for any object.
43
+
For the remaining steps, switch to PowerShell and the REST API. The portal doesn't show encryption key information for any object.
44
44
45
45
## Retrieve object properties
46
46
47
47
Use PowerShell and REST to run the following commands to set up the variables and get object definitions.
48
48
49
49
Alternatively, you can also use the Azure SDKs for [.NET](/dotnet/api/azure.search.documents.indexes.searchindexclient.getindexes), [Python](/python/api/azure-search-documents/azure.search.documents.indexes.searchindexclient), [JavaScript](/javascript/api/@azure/search-documents/searchindexclient), and [Java](/java/api/com.azure.search.documents.indexes.searchindexclient.getindex).
50
50
51
+
First, connect to your Azure account.
52
+
51
53
```powershell
52
-
<# Connect to Azure #>
53
-
$Connect-AzAccount
54
+
Connect-AzAccount
55
+
```
54
56
55
-
<# Provide the admin API key used for search service authentication #>
57
+
Set up the headers used on each request in the current session. Provide the admin API key used for search service authentication.
0 commit comments