Skip to content

Commit d5b47e9

Browse files
committed
consistency pass
1 parent 1ae672b commit d5b47e9

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

articles/search/search-query-odata-full-text-search-functions.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ The `search.ismatch` function returns a value of type `Edm.Boolean`, which allow
7070
> [!NOTE]
7171
> Azure AI Search doesn't support using `search.ismatch` or `search.ismatchscoring` inside lambda expressions. This means it isn't possible to write filters over collections of objects that can correlate full-text search matches with strict filter matches on the same object. For more information on this limitation as well as examples, see [Troubleshooting collection filters in Azure AI Search](search-query-troubleshoot-collection-filters.md). For more in-depth information on why this limitation exists, see [Understanding collection filters in Azure AI Search](search-query-understand-collection-filters.md).
7272
73-
7473
### search.ismatchscoring
7574

7675
The `search.ismatchscoring` function, like the `search.ismatch` function, returns `true` for documents that match the full-text search query passed as a parameter. The difference between them is that the relevance score of documents matching the `search.ismatchscoring` query contributes to the overall document score, whereas for `search.ismatch`, the document score doesn't change. The following overloads of this function are available with parameters identical to those of `search.ismatch`:
@@ -127,9 +126,22 @@ Find documents without the word "luxury".
127126
not search.ismatch('luxury')
128127
```
129128

129+
Here's the full query syntax for this request. Output consists of matches on the term luxury.
130+
131+
```json
132+
{
133+
"search": "*",
134+
"select": "HotelId, HotelName, Description, Tags, Rating",
135+
"searchMode": "all",
136+
"queryType": "simple",
137+
"count": true,
138+
"filter": "not search.ismatch('luxury')"
139+
}
140+
```
141+
130142
Find documents with the phrase "ocean" or rating equal to 3.2. The `search.ismatchscoring` query is executed only against fields `HotelName` and `Description`.
131143

132-
Documents that matched only the second clause of the disjunction will be returned too -- hotels with `Rating` equal to `3.2`. To make it clear that those documents didn't match any of the scored parts of the expression, they're returned with score equal to zero.
144+
Here's the full query syntax for this request. Documents that match only the second clause of the disjunction are returned too (specifically, hotels with `Rating` equal to `3.2`). To make it clear that those documents didn't match any of the scored parts of the expression, they're returned with score equal to zero.
133145

134146
```json
135147
{
@@ -142,7 +154,7 @@ Documents that matched only the second clause of the disjunction will be returne
142154
}
143155
```
144156

145-
Output consists of 4 matches: hotels that mention "ocean" in the Description or Hotel Name, or hotels with a rating of 3.2.
157+
Output consists of 4 matches: hotels that mention "ocean" in the Description or Hotel Name, or hotels with a rating of 3.2. Notice the search score of zero for matches on the second clause.
146158

147159
```json
148160
{
@@ -240,7 +252,7 @@ Here's a full query:
240252
}
241253
```
242254

243-
Here's the output:
255+
Output consists of the following matches.
244256

245257
```json
246258
{

0 commit comments

Comments
 (0)