Skip to content

Commit 113a33a

Browse files
committed
reformat semantic query params
1 parent 0969976 commit 113a33a

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

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

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.service: azure-ai-search
1010
ms.custom:
1111
- ignite-2023
1212
ms.topic: how-to
13-
ms.date: 09/24/2024
13+
ms.date: 11/19/2024
1414
---
1515

1616
# Add semantic ranking to queries in Azure AI Search
@@ -51,8 +51,13 @@ A few query capabilities bypass relevance scoring, which makes them incompatible
5151

5252
## Set up the query
5353

54-
By default, queries don't use semantic ranking. To use semantic ranking, two different parameters may be used. Each parameter supports a different set of scenarios:
54+
By default, queries don't use semantic ranking. To use semantic ranking, two different parameters can be used. Each parameter supports a different set of scenarios.
5555

56+
Semantic queries, whether specified through `search` plus `queryType`, or through `semanticQuery`, must be plain text.
57+
58+
Semantic queries can't be empty. Empty queries result in no semantic ranking being applied to the results.
59+
60+
<!--
5661
1. Set `queryType` to `semantic`:
5762
+ [Text search](search-lucene-query-architecture.md) with a simple plain text query. Empty queries result in no semantic ranking being applied to the results.
5863
+ [Hybrid search](hybrid-search-overview.md).
@@ -61,22 +66,22 @@ By default, queries don't use semantic ranking. To use semantic ranking, two dif
6166
+ [Text search](search-lucene-query-architecture.md) using the [simple](query-simple-syntax.md) or [full](query-lucene-syntax.md) syntax.
6267
+ [Vector search](vector-search-overview.md).
6368
+ [Hybrid search](hybrid-search-overview.md).
64-
+ The query specified for `semanticQuery` must be a plain text query. Empty queries aren't supported.
69+
+ The query specified for `semanticQuery` must be a plain text query. Empty queries aren't supported. -->
6570

66-
The following table illustrates the supported scenarios depending on which semantic ranking parameter is used:
67-
68-
| Semantic Ranker Parameter | Plain text search | [Simple text search syntax](query-simple-syntax.md) | [Full text search syntax](query-lucene-syntax.md) | [Vector search](vector-search-overview.md) | [Hybrid Search](hybrid-search-overview.md) | [Semantic answers](semantic-answers.md) and captions |
71+
| Semantic ranker parameter | [Plain text search](search-query-create.md) | [Simple text search syntax](query-simple-syntax.md) | [Full text search syntax](query-lucene-syntax.md) | [Vector search](vector-search-how-to-query.md) | [Hybrid Search](hybrid-search-how-to-query.md) | [Semantic answers](semantic-answers.md) and captions |
6972
|-|-|-|-|-|-|-|
70-
| Set `queryType` to `semantic` |||||||
71-
| Set `semanticQuery`<sup>1</sup> |||||||
73+
| `queryType`: `semantic` <sup>1</sup> |||||||
74+
| `semanticQuery`<sup>2</sup>: "<your plain text query>" |||||||
75+
76+
<sup>1</sup> `queryType=semantic` can't support explicit `simple` or `full` values because the `queryType` parameter is being used for `semantic`. The effective query behaviors are the defaults of the simple parser.
7277

73-
<sup>1</sup> `semanticQuery` isn't supported in the portal [search explorer](search-explorer.md).
78+
<sup>2</sup> The `semanticQuery` parameter can be used for all query types. However, it isn't supported in the portal [Search Explorer](search-explorer.md).
7479

7580
Regardless of the parameter chosen, the index should contain text fields with rich semantic content and a [semantic configuration](semantic-how-to-configure.md).
7681

7782
### [**Azure portal**](#tab/portal-query)
7883

79-
[Search explorer](search-explorer.md) includes options for semantic ranking.
84+
[Search explorer](search-explorer.md) includes options for semantic ranking. Recall that you can't set the `semanticQuery` parameter in the Azure portal.
8085

8186
1. Sign in to the [Azure portal](https://portal.azure.com).
8287

0 commit comments

Comments
 (0)