Skip to content

Commit 8018c51

Browse files
authored
Update search-query-lucene-examples.md to correct description of fielded search example
The description of the example mentions "hotels that include "hotel" or "motel" in the name". This seems incorrect, as results including 'motel' are excluded by the query 'HotelName:(hotel NOT motel)'.
1 parent 17b5e64 commit 8018c51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ POST /indexes/hotel-samples-index/docs/search?api-version=2020-06-30
7676
}
7777
```
7878

79-
Response for this query should look similar to the following example, filtered on "Resort and Spa", returning hotels that include "hotel" or "motel" in the name.
79+
Response for this query should look similar to the following example, filtered on "Resort and Spa", returning hotels that include "hotel" in the name, while exlcuding results that include "motel" in the name.
8080

8181
```json
8282
"@odata.count": 4,
@@ -364,4 +364,4 @@ Additional syntax reference, query architecture, and examples can be found in th
364364
+ [How full text search works in Azure Cognitive Search](search-lucene-query-architecture.md)
365365
+ [Simple query syntax](query-simple-syntax.md)
366366
+ [Full Lucene query syntax](query-lucene-syntax.md)
367-
+ [Filter syntax](search-query-odata-filter.md)
367+
+ [Filter syntax](search-query-odata-filter.md)

0 commit comments

Comments
 (0)