File tree 2 files changed +1
-34
lines changed
sdk/search/azure-search-documents
2 files changed +1
-34
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ known_content_issues:
126
126
- ['sdk/keyvault/azure-keyvault-nspkg/README.md', 'nspkg and common']
127
127
- ['sdk/mixedreality/azure-mixedreality-nspkg/README.md', 'nspkg and common']
128
128
- ['sdk/search/azure-search-nspkg/README.md', 'nspkg and common']
129
+ - ['sdk/search/azure-search-documents/README.md', 'nspkg and common']
129
130
- ['sdk/storage/azure-storage-blob/samples/README.md', 'nspkg and common']
130
131
- ['sdk/storage/azure-storage-file-datalake/samples/README.md', 'nspkg and common']
131
132
- ['sdk/storage/azure-storage-blob-changefeed/samples/README.md', 'nspkg and common']
Original file line number Diff line number Diff line change @@ -106,40 +106,6 @@ client = SearchClient(endpoint=endpoint,
106
106
credential = credential)
107
107
```
108
108
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
-
143
109
## Key concepts
144
110
145
111
An Azure Cognitive Search service contains one or more indexes that provide
You can’t perform that action at this time.
0 commit comments