You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/search/search-get-started-python.md
+12-13Lines changed: 12 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: 'Quickstart: Python and REST APIs - Azure Search'
3
3
description: Create, load, and query an index using Python, Jupyter Notebooks, and the Azure Search REST API.
4
4
5
-
ms.date: 05/23/2019
5
+
ms.date: 06/10/2019
6
6
author: heidisteen
7
7
manager: cgronlun
8
8
ms.author: heidist
@@ -83,22 +83,19 @@ In this task, start a Jupyter notebook and verify that you can connect to Azure
83
83
84
84
In contrast, an empty index collection returns this response: `{'@odata.context': 'https://mydemo.search.windows.net/$metadata#indexes(name)', 'value': []}`
85
85
86
-
> [!Tip]
87
-
> On a free service, you are limited to three indexes, indexers, and data sources. This quickstart creates one of each. Make sure you have room to create new objects before going any further.
88
-
89
86
## 1 - Create an index
90
87
91
88
Unless you are using the portal, an index must exist on the service before you can load data. This step uses the [Create Index REST API](https://docs.microsoft.com/rest/api/searchservice/create-index) to push an index schema to the service.
92
89
93
90
Required elements of an index include a name, a fields collection, and a key. The fields collection defines the structure of a *document*. Each field has a name, type, and attributes that determine how the field is used (for example, whether it is full-text searchable, filterable, or retrievable in search results). Within an index, one of the fields of type `Edm.String` must be designated as the *key* for document identity.
94
91
95
-
This index is named "hotels-py" and has the field definitions you see below. It's a subset of a larger [Hotels index](https://github.com/Azure-Samples/azure-search-sample-data/blob/master/hotels/Hotels_IndexDefinition.JSON) used in other walkthroughs. We trimmed it in this quickstart for brevity.
92
+
This index is named "hotels-quickstart" and has the field definitions you see below. It's a subset of a larger [Hotels index](https://github.com/Azure-Samples/azure-search-sample-data/blob/master/hotels/Hotels_IndexDefinition.JSON) used in other walkthroughs. We trimmed it in this quickstart for brevity.
96
93
97
94
1. In the next cell, paste the following example into a cell to provide the schema.
@@ -231,10 +228,10 @@ To push documents, use an HTTP POST request to your index's URL endpoint. The RE
231
228
}
232
229
```
233
230
234
-
2. In another cell, formulate the request. This POST request targets the docs collection of the hotels-py index and pushes the documents provided in the previous step.
231
+
2. In another cell, formulate the request. This POST request targets the docs collection of the hotels-quickstart index and pushes the documents provided in the previous step.
2. In another cell, formulate a request. This GET request targets the docs collection of the hotels-py index, and attaches the query you specified in the previous step.
255
+
2. In another cell, formulate a request. This GET request targets the docs collection of the hotels-quickstart index, and attaches the query you specified in the previous step.
@@ -290,14 +287,16 @@ This step shows you how to query an index using the [Search Documents REST API](
290
287
291
288
## Clean up
292
289
293
-
You should delete the index if you no longer need it. A free service is limited to three indexes. You might want to delete any indexes you are not actively using to make room for other tutorials.
290
+
You should delete the index if you no longer need it. A free service is limited to three indexes. You should delete any indexes you are not actively using to make room for other tutorials.
291
+
292
+
The easiest way to delete objects is through the portal, but since this is a Python quickstart, the following syntax yields the same result:
0 commit comments