Skip to content

Commit 11eba3e

Browse files
committed
fixed more formatting bugs
1 parent 6ecf218 commit 11eba3e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

articles/search/semantic-how-to-query-request.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Use [Search Documents](/rest/api/searchservice/documents/search-post) to formula
117117

118118
A response includes an `@search.rerankerScore` automatically. If you want captions or answers in the response, enable semantic ranking by setting `queryType` to `semantic` or setting `semanticQuery` and adding captions and answers to the request.
119119

120-
The following examples in this section uses the [hotels-sample-index](search-get-started-portal.md) to demonstrate semantic ranking with semantic answers and captions.
120+
The following examples in this section use the [hotels-sample-index](search-get-started-portal.md) to demonstrate semantic ranking with semantic answers and captions.
121121

122122
#### Use queryType=semantic
123123

@@ -162,7 +162,9 @@ POST https://[search-service-name].search.windows.net/indexes/hotels-sample-inde
162162

163163
#### Use semanticQuery
164164

165-
If you want to use "semanticQuery" in order to use [vector search](vector-search-overview.md), [simple text syntax](query-simple-syntax.md), or [full text syntax](query-lucene-syntax.md), adjust your request to the following JSON:
165+
By using `semanticQuery`, you can explicitly apply [simple text syntax](query-simple-syntax.md) or [full text syntax](query-lucene-syntax.md), which means you can now do fielded search, term boosting, and proximity search. You can also specify a [pure vector query](vector-search-how-to-query.md) instead of just hybrid.
166+
167+
Adjust your request to the following JSON to use `semanticQuery`.
166168

167169
```http
168170
POST https://[search-service-name].search.windows.net/indexes/hotels-sample-index/docs/search?api-version=2024-07-01
@@ -182,7 +184,7 @@ POST https://[search-service-name].search.windows.net/indexes/hotels-sample-inde
182184

183185
1. Set `queryType` to the search syntax you're using, either [simple](query-simple-syntax.md) or [full](query-lucene-syntax.md).
184186

185-
1. Set `semanticQuery` to the simple plain text query you want to use for semantic ranking. Empty queries aren't supported.
187+
1. Set `semanticQuery` to the simple plain text query you want to use for semantic ranking. Empty queries aren't supported. Avoid operators or any query syntax inside the string itself.
186188

187189
### [**.NET SDK**](#tab/dotnet-query)
188190

0 commit comments

Comments
 (0)