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-query-overview.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ Used together, the filter is applied first to the entire index, and then the sea
66
66
The syntax for filter expressions is a subset of the [OData filter language](https://docs.microsoft.com/rest/api/searchservice/OData-Expression-Syntax-for-Azure-Search). For search queries you can use either the [simplified syntax](https://docs.microsoft.com/rest/api/searchservice/Simple-query-syntax-in-Azure-Search) or the [Lucene query syntax](https://docs.microsoft.com/rest/api/searchservice/Lucene-query-syntax-in-Azure-Search) which are discussed below.
67
67
68
68
69
-
## Choose a syntax: simple or full Lucene
69
+
## Choose a syntax: simple or full
70
70
71
71
Azure Search sits on top of Apache Lucene and gives you a choice between two query parsers for handling typical and specialized queries. Typical search requests are formulated using the default [simple query syntax](https://docs.microsoft.com/rest/api/searchservice/Simple-query-syntax-in-Azure-Search). This syntax supports a number of common search operators including the AND, OR, NOT, phrase, suffix, and precedence operators.
72
72
@@ -100,7 +100,7 @@ All other search parameters are optional.
100
100
101
101
## APIs and tools for testing
102
102
103
-
The following table lists the APIs and tool-based approaches for submitting squeries.
103
+
The following table lists the APIs and tool-based approaches for submitting queries.
104
104
105
105
| Methodology | Description |
106
106
|-------------|-------------|
@@ -109,14 +109,14 @@ The following table lists the APIs and tool-based approaches for submitting sque
109
109
|[Fiddler, Postman, or other HTTP testing tool](search-fiddler.md)| Explains how to set up a request header and body for sending queries to Azure Search. |
110
110
|[Search explorer in Azure portal](search-explorer.md)| Provides a search bar and options for index and api-version selections. Results are returned as JSON documents. <br/>[Learn more.](search-get-started-portal.md#query-index)|
111
111
112
-
## Managing search results
112
+
## Manage search results
113
113
114
114
Parameters on the query can be used to structure the result set in the following ways:
115
115
116
116
+ Limiting or batching the number of documents in the results (50 by default)
117
117
+ Selecting fields to include in the results
118
118
+ Setting a sort order
119
-
+Addding hit highlights to draw attention to matching terms in the body of the search results
119
+
+Adding hit highlights to draw attention to matching terms in the body of the search results
Copy file name to clipboardExpand all lines: articles/search/search-query-simple-examples.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,7 @@ Response for this query should look similar to the following screenshot.
79
79
80
80
You might have noticed that the search score is also returned for every document even though search score is not specified. This is because search score is metadata, with the value indicating rank order of results. Uniform scores of 1 occur when there is no rank, either because the search was not full text search, or because there is no criteria to apply. For null search, there is no criteria and the rows coming back are in arbitrary order. As the search criteria takes on more definition, you will see search scores evolve into meaningful values.
81
81
82
-
## Example 2: Lookup by ID
82
+
## Example 2: Look-up by ID
83
83
84
84
This example is a bit atypical, but when evaluating search behaviors, you might want to inspect the entire contents of a document to understand why it was included or excluded from results. To return an entire document, use a [Lookup operation](https://docs.microsoft.com/rest/api/searchservice/lookup-document) to pass in the document ID.
85
85
@@ -95,7 +95,7 @@ The next example is a lookup query returning a specific document based on `id` "
Term queries are single terms, perhaps many of them, that are evaluated independently. Phrase queries are enclosed in quotation marks and evaluated as a verbatim string. Precision of the match is controlled by operators and searchMode.
101
101
@@ -117,9 +117,9 @@ Example 3: **`&search="fire department"`** returns 82 results. Enclosing the str
Simple syntax supports boolean operators in the form of characters (`+, -, |`). The searchMode parameter informs tradeoffs between precision and recall, with `searchMode=any` favoring recall (matching on any critieria qualifies a document for the result set), and `searchMode=all` favoring precision (all criteria must be matched). The default is `searchMode=any`, which can be confusing if you are stacking a query with multiple operators and getting broader instead of narrower results. This is particularly true with NOT, where results include all documents "not containing" a specific term.
122
+
Simple syntax supports boolean operators in the form of characters (`+, -, |`). The searchMode parameter informs tradeoffs between precision and recall, with `searchMode=any` favoring recall (matching on any criteria qualifies a document for the result set), and `searchMode=all` favoring precision (all criteria must be matched). The default is `searchMode=any`, which can be confusing if you are stacking a query with multiple operators and getting broader instead of narrower results. This is particularly true with NOT, where results include all documents "not containing" a specific term.
123
123
124
124
Using the default searchMode (any), 2800 documents are returned: those containing the multi-part term "fire department", plus all documents that do not have the term "Metrotech Center".
0 commit comments