Skip to content

Commit faeba52

Browse files
authored
Merge pull request #7 from LisaLeib/cogsrch-py-sample-update-1
added indexer status script to notebook and sentence to readme
2 parents 680a9a8 + 4431c21 commit faeba52

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ This sample is a .ipynb file containing a Python3 notebook used in [Quickstart:
2121

2222
This sample is a .ipynb file containing a Python3 notebook used in [Tutorial: Python Tutorial: Call Cognitive Services APIs in an Azure Search indexing pipeline](https://docs.microsoft.com/azure/search/cognitive-search-tutorial-blob-python). There are three placeholder values to insert: an Azure Search service, an admin API key, and a connection string to a blob storage resource that you will create in the tutorial. Replace them with valid values to create an indexing pipeline that searches for and extracts text and text representations of images and scanned documents. This sample leverages cognitive skills from the Azure Cognitive Services API, such as entity recognition and language detection.
2323

24-
Run the steps individually and make sure the printed response status or response output appears before continuing to the next step. The step that creates the indexer, in particular, may take a few minutes to complete.
24+
Run the steps individually and make sure the printed response status or response output appears before continuing to the next step. The step that creates the indexer, in particular, may take a few minutes to complete. See the tutorial for more details.

Tutorial-AI-Enrichment-Jupyter-Notebook/PythonTutorial-AzureSearch-AIEnrichment.ipynb

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,17 @@
261261
"print(r.status_code)\n"
262262
]
263263
},
264+
{
265+
"cell_type": "code",
266+
"execution_count": null,
267+
"metadata": {},
268+
"outputs": [],
269+
"source": [
270+
"#Get indexer status\n",
271+
"r = requests.get(endpoint + \"/indexers/\" + indexer_name + \"/status\", headers=headers,params=params)\n",
272+
"pprint(json.dumps(r.json(), indent=1))"
273+
]
274+
},
264275
{
265276
"cell_type": "code",
266277
"execution_count": null,
@@ -284,13 +295,6 @@
284295
"r = requests.get(endpoint + \"/indexes/\" + index_name + \"/docs?&search=*&$select=organizations\", headers=headers, params=params)\n",
285296
"pprint(r.json())"
286297
]
287-
},
288-
{
289-
"cell_type": "code",
290-
"execution_count": null,
291-
"metadata": {},
292-
"outputs": [],
293-
"source": []
294298
}
295299
],
296300
"metadata": {

0 commit comments

Comments
 (0)