Skip to content

Commit 546dafe

Browse files
committed
In the latest Python SDK, search_fields is an array
1 parent 494a894 commit 546dafe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Quickstart/v11/azure-search-quickstart.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,11 @@
338338
]
339339
},
340340
{
341+
"attachments": {},
341342
"cell_type": "markdown",
342343
"metadata": {},
343344
"source": [
344-
"In the next query, add search_fields to scope query matching to a single field. "
345+
"In the next query, add search_fields (an array) to scope query matching to a single field. "
345346
]
346347
},
347348
{
@@ -350,7 +351,7 @@
350351
"metadata": {},
351352
"outputs": [],
352353
"source": [
353-
"results = search_client.search(search_text=\"sublime\", search_fields='HotelName', select='HotelId,HotelName')\n",
354+
"results = search_client.search(search_text=\"sublime\", search_fields=['HotelName'], select='HotelId,HotelName')\n",
354355
"\n",
355356
"for result in results:\n",
356357
" print(\"{}: {}\".format(result[\"HotelId\"], result[\"HotelName\"]))"

0 commit comments

Comments
 (0)