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-create-app-portal.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ author: HeidiSteen
8
8
ms.author: heidist
9
9
ms.service: cognitive-search
10
10
ms.topic: quickstart
11
-
ms.date: 12/05/2019
11
+
ms.date: 03/25/2020
12
12
---
13
13
14
14
# Quickstart: Create a search app in the portal (Azure Cognitive Search)
@@ -19,13 +19,13 @@ If you don't have an Azure subscription, create a [free account](https://azure.m
19
19
20
20
## Prerequisites
21
21
22
-
You will want to upgrade to the [latest version of Microsoft Edge](https://www.microsoft.com/edge) or use Google's Chrome browser for this quickstart at this time.
22
+
Upgrade to the [latest version of Microsoft Edge](https://www.microsoft.com/edge) or use Google's Chrome browser for this quickstart.
23
23
24
24
[Create an Azure Cognitive Search service](search-create-service-portal.md) or [find an existing service](https://ms.portal.azure.com/#blade/HubsExtension/BrowseResourceBlade/resourceType/Microsoft.Search%2FsearchServices) under your current subscription. You can use a free service for this quickstart.
25
25
26
26
[Create an index](search-create-index-portal.md) to use as the basis of your application.
27
27
28
-
This quickstart uses the built-in Real Estate sample data and index because it has thumbnail images. To create the index used in this exercise, run the **Import data** wizard, choosing the *realestate-us-sample* data source.
28
+
This quickstart uses the built-in Real Estate sample data and index because it has thumbnail images (the wizard supports adding images to the results page). To create the index used in this exercise, run the **Import data** wizard, choosing the *realestate-us-sample* data source.
29
29
30
30

description: Search explorer is built into the Azure portal, useful for exploring content and validating queries in Azure Cognitive Search. Enter strings for term or phrase search, or fully qualified search expressions with advanced syntax.
4
+
description: In this Azure portal quickstart, use Search Explorer to learn query syntax, test query expressions, or inspect a search document. Search explorer queries indexes in Azure Cognitive Search.
5
5
6
6
manager: nitinme
7
7
author: HeidiSteen
8
8
ms.author: heidist
9
9
ms.service: cognitive-search
10
-
ms.topic: conceptual
11
-
ms.date: 11/04/2019
10
+
ms.topic: quickstart
11
+
ms.date: 03/27/2020
12
12
---
13
13
14
-
# Use Search explorer in the Azure portal for querying documents in Azure Cognitive Search
14
+
# Quickstart: Use Search explorer to run queries in the portal
15
15
16
-
This article shows you how to query an existing Azure Cognitive Search index using **Search explorer** in the Azure portal. You can start Search explorer from the command bar to submit simple or full Lucene query expressions to any existing index in your service.
16
+
**Search explorer** is a built-in query tool used for running queries against a search index in Azure Cognitive Search. This tool makes it easy to learn query syntax, test a query or filter expression, or confirm the results of an index refresh by verifying newer content exists.
17
+
18
+
This quickstart uses **realestate-us-sample-index** to demonstrate Search explorer. Requests are formulated using the [Search REST API](https://docs.microsoft.com/rest/api/searchservice/), with responses returned as JSON documents.
19
+
20
+
## Prerequisites
21
+
22
+
+[Create an Azure Cognitive Search service](search-create-service-portal.md) or [find an existing service](https://ms.portal.azure.com/#blade/HubsExtension/BrowseResourceBlade/resourceType/Microsoft.Search%2FsearchServices) under your current subscription. You can use a free service for this quickstart.
23
+
24
+
+**realestate-us-sample-index** is used for this quickstart. Step through the [**Import data**](search-import-data-portal.md) wizard to generate the index from the built-in samples data source.
25
+
26
+
## Start Search explorer
27
+
28
+
1. In the [Azure portal](https://portal.azure.com), open the search service page from the dashboard or [find your service](https://ms.portal.azure.com/#blade/HubsExtension/BrowseResourceBlade/resourceType/Microsoft.Search%2FsearchServices).
29
+
30
+
1. Open Search explorer from the command bar:
17
31
18
32

19
33
20
-
## Basic search strings
34
+
Or use the embedded **Search explorer** tab on an open index:
21
35
22
-
The following examples assume the built-in real estate sample index. You can create this index using the Import data wizard in the portal, choosing **Samples** as the data source.
36
+

23
37
24
-
### Example 1 - empty search
38
+
##Unspecified query
25
39
26
-
For a first look at your content, execute an empty search by clicking **Search** with no terms provided. An empty search is useful as a first query because it returns entire documents so that you can review document composition. On an empty search, there is no search rank and documents are returned in arbitrary order (`"@search.score": 1` for all documents). By default, 50 documents are returned in a search request.
40
+
For a first look at content, execute an empty search by clicking **Search** with no terms provided. An empty search is useful as a first query because it returns entire documents so that you can review document composition. On an empty search, there is no search rank and documents are returned in arbitrary order (`"@search.score": 1` for all documents). By default, 50 documents are returned in a search request.
27
41
28
42
Equivalent syntax for an empty search is `*` or `search=*`.
29
-
30
-
```Input
43
+
44
+
```http
31
45
search=*
32
46
```
33
47
34
48
**Results**
35
49
36
50

37
51
38
-
### Example 2 - free text search
52
+
##Free text search
39
53
40
-
Free-form queries, with or without operators, are useful for simulating user-defined queries sent from a custom app to Azure Cognitive Search. Notice that when you provide query terms or expressions, search rank comes into play. The following example illustrates a free text search.
54
+
Free-form queries, with or without operators, are useful for simulating user-defined queries sent from a custom app to Azure Cognitive Search. Only those fields attributed as **Searchable** in the index definition are scanned for matches.
41
55
42
-
```Input
56
+
Notice that when you provide search criteria, such as query terms or expressions, search rank comes into play. The following example illustrates a free text search.
57
+
58
+
```http
43
59
Seattle apartment "Lake Washington" miele OR thermador appliance
44
60
```
45
61
@@ -49,34 +65,35 @@ Free-form queries, with or without operators, are useful for simulating user-def
49
65
50
66

51
67
52
-
### Example 3 - count of matching documents
68
+
##Count of matching documents
53
69
54
-
Add **$count** to get the number of matches found in an index. On an empty search, count is the total number of documents in the index. On a qualified search, it's the number of documents matching the query input.
70
+
Add **$count=true** to get the number of matches found in an index. On an empty search, count is the total number of documents in the index. On a qualified search, it's the number of documents matching the query input.
55
71
56
-
```Input1
72
+
```http
57
73
$count=true
58
74
```
75
+
59
76
**Results**
60
77
61
78

62
79
63
-
### Example 4 - restrict fields in search results
80
+
##Limit fields in search results
64
81
65
-
Add **$select** to limit results to the explicitly named fields for more readable output in **Search explorer**. To keep the search string and **$count=true**, prefix arguments with **&**.
82
+
Add [**$select**](search-query-odata-select.md) to limit results to the explicitly named fields for more readable output in **Search explorer**. To keep the search string and **$count=true**, prefix arguments with **&**.

74
91
75
-
### Example 5 - return next batch of results
92
+
##Return next batch of results
76
93
77
94
Azure Cognitive Search returns the top 50 matches based on the search rank. To get the next set of matching documents, append **$top=100,&$skip=50** to increase the result set to 100 documents (default is 50, maximum is 1000), skipping the first 50 documents. Recall that you need to provide search criteria, such as a query term or expression, to get ranked results. Notice that search scores decrease the deeper you reach into search results.
@@ -86,9 +103,9 @@ Azure Cognitive Search returns the top 50 matches based on the search rank. To g
86
103
87
104
## Filter expressions (greater than, less than, equal to)
88
105
89
-
Use the **$filter** parameter when you want to specify precise criteria rather than free text search. This example searches for bedrooms greater than 3:
106
+
Use the [**$filter**](search-query-odata-filter.md) parameter when you want to specify precise criteria rather than free text search. The field must be attributed as **Filterable** in the index. This example searches for bedrooms greater than 3:
@@ -98,9 +115,9 @@ Use the **$filter** parameter when you want to specify precise criteria rather t
98
115
99
116
## Order-by expressions
100
117
101
-
Add **$orderby** to sort results by another field besides search score. An example expression you can use to test this out is:
118
+
Add [**$orderby**](search-query-odata-orderby.md) to sort results by another field besides search score. The field must be attributed as **Sortable** in the index. An example expression you can use to test this out is:
@@ -112,40 +129,29 @@ Both **$filter** and **$orderby** expressions are OData constructions. For more
112
129
113
130
<aname="start-search-explorer"></a>
114
131
115
-
## How to start Search explorer
116
-
117
-
1. In the [Azure portal](https://portal.azure.com), open the search service page from the dashboard or [find your service](https://ms.portal.azure.com/#blade/HubsExtension/BrowseResourceBlade/resourceType/Microsoft.Search%2FsearchServices) in the service list.
132
+
## Takeaways
118
133
119
-
2. In the service overview page, click **Search explorer**.
120
-
121
-

122
-
123
-
3. Select the index to query.
124
-
125
-

126
-
127
-
4. Optionally, set the API version. By default, the current generally available API version is selected, but you can choose a preview or older API if the syntax you want to use is version-specific.
128
-
129
-
5. Once the index and API version is selected, enter search terms or fully qualified query expressions in the search bar and click **Search** to execute.
130
-
131
-

132
-
133
-
Tips for searching in **Search explorer**:
134
+
In this quickstart, you used **Search explorer** to query an index using the REST API.
134
135
135
136
+ Results are returned as verbose JSON documents so that you can view document construction and content, in entirety. You can use query expressions, shown in the examples, to limit which fields are returned.
136
137
137
138
+ Documents are composed of all fields marked as **Retrievable** in the index. To view index attributes in the portal, click *realestate-us-sample* in the **Indexes** list on the search overview page.
138
139
139
140
+ Free-form queries, similar to what you might enter in a commercial web browser, are useful for testing an end-user experience. For example, assuming the built-in realestate sample index, you could enter "Seattle apartments lake washington", and then you can use Ctrl-F to find terms within the search results.
140
141
141
-
+ Query and filter expressions must be articulated in a syntax supported by Azure Cognitive Search. The default is a [simple syntax](https://docs.microsoft.com/rest/api/searchservice/simple-query-syntax-in-azure-search), but you can optionally use [full Lucene](https://docs.microsoft.com/rest/api/searchservice/lucene-query-syntax-in-azure-search) for more powerful queries. [Filter expressions](https://docs.microsoft.com/rest/api/searchservice/odata-expression-syntax-for-azure-search) are an OData syntax.
142
+
+ Query and filter expressions are articulated in a syntax supported by Azure Cognitive Search. The default is a [simple syntax](https://docs.microsoft.com/rest/api/searchservice/simple-query-syntax-in-azure-search), but you can optionally use [full Lucene](https://docs.microsoft.com/rest/api/searchservice/lucene-query-syntax-in-azure-search) for more powerful queries. [Filter expressions](https://docs.microsoft.com/rest/api/searchservice/odata-expression-syntax-for-azure-search) are an OData syntax.
143
+
144
+
## Clean up resources
145
+
146
+
When you're working in your own subscription, it's a good idea at the end of a project to identify whether you still need the resources you created. Resources left running can cost you money. You can delete resources individually or delete the resource group to delete the entire set of resources.
147
+
148
+
You can find and manage resources in the portal, using the **All resources** or **Resource groups** link in the left-navigation pane.
142
149
150
+
If you are using a free service, remember that you are limited to three indexes, indexers, and data sources. You can delete individual items in the portal to stay under the limit.
143
151
144
152
## Next steps
145
153
146
-
The following resources provide additional query syntax information and examples.
154
+
To learn more about query structures and syntax, use Postman or an equivalent tool to create query expressions that leverage more parts of the API. The [Search REST API](https://docs.microsoft.com/rest/api/searchservice/) is especially helpful for learning and exploration.
Copy file name to clipboardExpand all lines: articles/search/search-get-started-portal.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Create a search index in the Azure portal
3
3
titleSuffix: Azure Cognitive Search
4
-
description: In this portal quickstart, learn how to use the Import Data wizard to create, load, and query your first search index in Azure Cognitive Search.
4
+
description: In this Azure portal quickstart, use the Import Data wizard to create, load, and query your first search index in Azure Cognitive Search.
0 commit comments