Skip to content

Commit 673fd65

Browse files
committed
clarified fuzzy search support
1 parent 4dbfa23 commit 673fd65

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

articles/search/query-simple-syntax.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ author: brjohnstmsft
88
ms.author: brjohnst
99
ms.service: cognitive-search
1010
ms.topic: conceptual
11-
ms.date: 04/03/2020
11+
ms.date: 04/12/2020
1212
---
1313

1414
# Simple query syntax in Azure Cognitive Search
1515

16-
Azure Cognitive Search implements two Lucene-based query languages: [Simple Query Parser](https://lucene.apache.org/core/6_6_1/queryparser/org/apache/lucene/queryparser/simple/SimpleQueryParser.html) and the [Lucene Query Parser](https://lucene.apache.org/core/6_6_1/queryparser/org/apache/lucene/queryparser/classic/package-summary.html). In Azure Cognitive Search, the simple query syntax excludes the fuzzy/slop options.
16+
Azure Cognitive Search implements two Lucene-based query languages: [Simple Query Parser](https://lucene.apache.org/core/6_6_1/queryparser/org/apache/lucene/queryparser/simple/SimpleQueryParser.html) and the [Lucene Query Parser](https://lucene.apache.org/core/6_6_1/queryparser/org/apache/lucene/queryparser/classic/package-summary.html).
17+
18+
In Azure Cognitive Search, the simple query syntax excludes fuzzy search operations. Instead, use the full Lucene syntax for [fuzzy search](search-query-fuzzy.md).
1719

1820
> [!NOTE]
1921
> The simple query syntax is used for query expressions passed in the **search** parameter of the [Search Documents](https://docs.microsoft.com/rest/api/searchservice/search-documents) API, not to be confused with the [OData syntax](query-odata-filter-orderby-syntax.md) used for the [$filter](search-filters.md) parameter of that API. These different syntaxes have their own rules for constructing queries, escaping strings, and so on.
@@ -89,15 +91,15 @@ When deciding on a **searchMode** setting, consider the user interaction pattern
8991

9092
<a name="prefix-search"></a>
9193

92-
## Suffix `*` operator for prefix search
94+
## Suffix `*` operator (prefix search)
9395

94-
The suffix operator is an asterisk `*`. For example, `lingui*` will find documents containing terms that start with "lingui", such as "linguistic" or "linguini", ignoring case.
96+
The suffix operator is an asterisk `*`. For example, `lingui*` will find "linguistic" or "linguini", ignoring case.
9597

9698
Similar to filters, a prefix query looks for an exact match. As such, there is no relevance scoring (all results receive a search score of 1.0). Prefix queries can be slow, especially if the index is large and the prefix consists of a small number of characters.
9799

98100
If you want to execute a suffix query, matching on the last part of string, use a [wildcard search](query-lucene-syntax.md#bkmk_wildcard) and the full Lucene syntax.
99101

100-
## Phrase search
102+
## Phrase operator `"`
101103

102104
The phrase operator encloses a phrase in quotation marks `" "`. For example, while `Roach Motel` (without quotes) would search for documents containing `Roach` and/or `Motel` anywhere in any order, `"Roach Motel"` (with quotes) will only match documents that contain that whole phrase together and in that order (text analysis still applies).
103105

0 commit comments

Comments
 (0)