Skip to content

Commit 66ec4fa

Browse files
authored
remove first query section (#17033)
* remove first query section * update
1 parent 6eee65d commit 66ec4fa

File tree

2 files changed

+1
-34
lines changed

2 files changed

+1
-34
lines changed

eng/.docsettings.yml

+1
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ known_content_issues:
126126
- ['sdk/keyvault/azure-keyvault-nspkg/README.md', 'nspkg and common']
127127
- ['sdk/mixedreality/azure-mixedreality-nspkg/README.md', 'nspkg and common']
128128
- ['sdk/search/azure-search-nspkg/README.md', 'nspkg and common']
129+
- ['sdk/search/azure-search-documents/README.md', 'nspkg and common']
129130
- ['sdk/storage/azure-storage-blob/samples/README.md', 'nspkg and common']
130131
- ['sdk/storage/azure-storage-file-datalake/samples/README.md', 'nspkg and common']
131132
- ['sdk/storage/azure-storage-blob-changefeed/samples/README.md', 'nspkg and common']

sdk/search/azure-search-documents/README.md

-34
Original file line numberDiff line numberDiff line change
@@ -106,40 +106,6 @@ client = SearchClient(endpoint=endpoint,
106106
credential=credential)
107107
```
108108

109-
110-
### Send your first search request
111-
112-
To get running immediately, we're going to connect to a well known sandbox
113-
Search service provided by Microsoft. This means you do not need an Azure
114-
subscription or Azure Cognitive Search service to try out this query.
115-
116-
117-
```python
118-
from azure.core.credentials import AzureKeyCredential
119-
from azure.search.documents import SearchClient
120-
121-
# We'll connect to the Azure Cognitive Search public sandbox and send a
122-
# query to its "nycjobs" index built from a public dataset of available jobs
123-
# in New York.
124-
service_name = "azs-playground"
125-
index_name = "nycjobs"
126-
api_key = "252044BE3886FE4A8E3BAA4F595114BB"
127-
128-
# Create a SearchClient to send queries
129-
endpoint = "https://{}.search.windows.net/".format(service_name)
130-
credential = AzureKeyCredential(api_key)
131-
client = SearchClient(endpoint=endpoint,
132-
index_name=index_name,
133-
credential=credential)
134-
135-
# Let's get the top 5 jobs related to Microsoft
136-
results = client.search(search_text="Microsoft", top=5)
137-
138-
for result in results:
139-
# Print out the title and job description
140-
print("{}\n{}\n)".format(result["business_title"], result["job_description"]))
141-
```
142-
143109
## Key concepts
144110

145111
An Azure Cognitive Search service contains one or more indexes that provide

0 commit comments

Comments
 (0)