Skip to content

Commit dd03847

Browse files
committed
fixes
1 parent fb925ed commit dd03847

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

articles/search/search-query-overview.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Used together, the filter is applied first to the entire index, and then the sea
6666
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.
6767

6868

69-
## Choose a syntax: simple or full Lucene
69+
## Choose a syntax: simple or full
7070

7171
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.
7272

@@ -100,7 +100,7 @@ All other search parameters are optional.
100100

101101
## APIs and tools for testing
102102

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.
104104

105105
| Methodology | Description |
106106
|-------------|-------------|
@@ -109,14 +109,14 @@ The following table lists the APIs and tool-based approaches for submitting sque
109109
| [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. |
110110
| [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) |
111111

112-
## Managing search results
112+
## Manage search results
113113

114114
Parameters on the query can be used to structure the result set in the following ways:
115115

116116
+ Limiting or batching the number of documents in the results (50 by default)
117117
+ Selecting fields to include in the results
118118
+ 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
120120

121121
### Tips for unexpected results
122122

articles/search/search-query-simple-examples.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Response for this query should look similar to the following screenshot.
7979

8080
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.
8181

82-
## Example 2: Look up by ID
82+
## Example 2: Look-up by ID
8383

8484
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.
8585

@@ -95,7 +95,7 @@ The next example is a lookup query returning a specific document based on `id` "
9595
https://azs-playground.search.windows.net/indexes/nycjobs/docs/9E1E3AF9-0660-4E00-AF51-9B654925A2D5?api-version=2017-11-11&$count=true&search=*
9696
```
9797

98-
## Example 3: Term and phrase query precision
98+
## Example 3: Search precision
9999

100100
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.
101101

@@ -117,9 +117,9 @@ Example 3: **`&search="fire department"`** returns 82 results. Enclosing the str
117117
https://azs-playground.search.windows.net/indexes/nycjobs/docs?api-version=2017-11-11&$count=true&search="fire department"
118118
```
119119

120-
## Example 4: NOT (-) operators with searchMode
120+
## Example 4: Booleans with searchMode
121121

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 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.
123123

124124
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".
125125

0 commit comments

Comments
 (0)