Skip to content

Commit eb4d736

Browse files
committed
added indexer status script
1 parent 2816d32 commit eb4d736

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

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)