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
+31-17Lines changed: 31 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,13 @@ title: 'Quickstart: Create a search index in Python using REST APIs'
3
3
titleSuffix: Azure Cognitive Search
4
4
description: Explains how to create an index, load data, and run queries using Python, Jupyter Notebooks, and the Azure Cognitive Search REST API.
5
5
6
-
author: tchristiani
6
+
author: HeidiSteen
7
7
manager: nitinme
8
-
ms.author: terrychr
8
+
ms.author: heidist
9
9
ms.service: cognitive-search
10
10
ms.topic: quickstart
11
11
ms.devlang: rest-api
12
-
ms.date: 02/10/2020
12
+
ms.date: 04/01/2020
13
13
---
14
14
15
15
# Quickstart: Create an Azure Cognitive Search index in Python using Jupyter notebooks
@@ -193,7 +193,7 @@ To push documents, use an HTTP POST request to your index's URL endpoint. The RE
193
193
"@search.action": "upload",
194
194
"HotelId": "3",
195
195
"HotelName": "Triple Landscape Hotel",
196
-
"Description": "The Hotel stands out for its gastronomic excellence under the management of William Dough, who advises on and oversees all of the Hotel’s restaurant services.",
196
+
"Description": "The Hotel stands out for its gastronomic excellence under the management of William Dough, who advises on and oversees all of the Hotel's restaurant services.",
197
197
"Description_fr": "L'hôtel est situé dans une place du XIXe siècle, qui a été agrandie et rénovée aux plus hautes normes architecturales pour créer un hôtel moderne, fonctionnel et de première classe dans lequel l'art et les éléments historiques uniques coexistent avec le confort le plus moderne.",
1. In a new cell, provide the following example to search on the terms "hotels" and "wifi". Add $select to specify which fields to include in the search results.
1. 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.
1. Run each step. Results should look similar to the following output.
273
+
Results should look similar to the following output.
273
274
274
275

275
276
276
-
1. Try a few other query examples to get a feel for the syntax. You can replace the `searchstring` with the following examples and then rerun the search request.
277
-
278
-
Apply a filter:
277
+
1. Next, apply a $filter expression that selects only those hotels with a rating greater than 4.
1. By default, the search engine returns the top 50 documents but you can use top and skip to add pagination and choose how many documents in each result. This query returns two documents in each result set.
0 commit comments