Skip to content

Commit 2d64abe

Browse files
authored
Remove Samples and Readme References with apiKeys (Azure#14072)
1 parent 719c3f8 commit 2d64abe

File tree

5 files changed

+0
-147
lines changed

5 files changed

+0
-147
lines changed

sdk/search/search-documents/README.md

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -85,37 +85,6 @@ const indexClient = new SearchIndexClient("<endpoint>", new AzureKeyCredential("
8585
const indexerClient = new SearchIndexerClient("<endpoint>", new AzureKeyCredential("<apiKey>"));
8686
```
8787

88-
### Send your first search query
89-
90-
To get running immediately, we're going to connect to a well known sandbox Search service provided by Microsoft. This means you do not need an Azure subscription or Azure Cognitive Search service to try out this query.
91-
92-
```js
93-
const { SearchClient, AzureKeyCredential } = require("@azure/search-documents");
94-
95-
// We'll connect to the Azure Cognitive Search public sandbox and send a
96-
// query to its "nycjobs" index built from a public dataset of available jobs
97-
// in New York.
98-
const indexName = "nycjobs";
99-
const apiKey = "252044BE3886FE4A8E3BAA4F595114BB";
100-
101-
// Create a SearchClient to send queries
102-
const client = new SearchClient(
103-
`https://azs-playground.search.windows.net/`,
104-
indexName,
105-
new AzureKeyCredential(apiKey)
106-
);
107-
108-
async function main() {
109-
// Let's get the top 5 jobs related to Microsoft
110-
const searchResults = await client.search("Microsoft", { top: 5 });
111-
for await (const result of searchResults.results) {
112-
console.log(`${result.document.business_title}\n${result.document.job_description}\n`);
113-
}
114-
}
115-
116-
main();
117-
```
118-
11988
## Key concepts
12089
An Azure Cognitive Search service contains one or more indexes that provide persistent storage of searchable data in the form of JSON documents. _(If you're brand new to search, you can make a very rough analogy between indexes and database tables.)_ The @azure/search-documents client library
12190
exposes operations on these resources through three main client types.

sdk/search/search-documents/samples/javascript/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ These sample programs show how to use the JavaScript client libraries for Azure
44

55
| **File Name** | **Description** |
66
| ---------------------------- | ------------------------ |
7-
| [readonlyQuery.js][readonly] | queries a public dataset |
87
| **Data Source Connections** |
98
| [createDataSourceConnection.js][createDataSourceConnection] | Creates a Datasource Connection |
109
| [createOrUpdateDataSourceConnection.js][createOrUpdateDataSourceConnection] | Updates a Datasource Connection |

sdk/search/search-documents/samples/javascript/src/readonlyQuery.js

Lines changed: 0 additions & 43 deletions
This file was deleted.

sdk/search/search-documents/samples/typescript/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ These sample programs show how to use the TypeScript client libraries for Azure
44

55
| **File Name** | **Description** |
66
| ---------------------------- | ------------------------ |
7-
| [readonlyQuery.ts][readonly] | queries a public dataset |
87
| **Data Source Connections** |
98
| [createDataSourceConnection.ts][createDataSourceConnection] | Creates a Datasource Connection |
109
| [createOrUpdateDataSourceConnection.ts][createOrUpdateDataSourceConnection] | Updates a Datasource Connection |

sdk/search/search-documents/samples/typescript/src/readonlyQuery.ts

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)