You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/search/semantic-how-to-query-request.md
+15-10Lines changed: 15 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ ms.service: azure-ai-search
10
10
ms.custom:
11
11
- ignite-2023
12
12
ms.topic: how-to
13
-
ms.date: 09/24/2024
13
+
ms.date: 11/19/2024
14
14
---
15
15
16
16
# Add semantic ranking to queries in Azure AI Search
@@ -51,8 +51,13 @@ A few query capabilities bypass relevance scoring, which makes them incompatible
51
51
52
52
## Set up the query
53
53
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.
55
55
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
+
<!--
56
61
1. Set `queryType` to `semantic`:
57
62
+ [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.
58
63
+ [Hybrid search](hybrid-search-overview.md).
@@ -61,22 +66,22 @@ By default, queries don't use semantic ranking. To use semantic ranking, two dif
61
66
+ [Text search](search-lucene-query-architecture.md) using the [simple](query-simple-syntax.md) or [full](query-lucene-syntax.md) syntax.
62
67
+ [Vector search](vector-search-overview.md).
63
68
+ [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.-->
65
70
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 |
69
72
|-|-|-|-|-|-|-|
70
-
| Set `queryType` to `semantic`| ✅ | ❌ | ❌ | ❌ | ✅ | ✅ |
<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.
72
77
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).
74
79
75
80
Regardless of the parameter chosen, the index should contain text fields with rich semantic content and a [semantic configuration](semantic-how-to-configure.md).
76
81
77
82
### [**Azure portal**](#tab/portal-query)
78
83
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.
80
85
81
86
1. Sign in to the [Azure portal](https://portal.azure.com).
0 commit comments