Skip to content

Commit 58e92dd

Browse files
authored
Update Search with x-ms-client-names and a few new requires (#26355)
* Update Search with x-ms-client-names and a few new requires * Make VectorizableTextQuery.text required * Renamce SemanticSetting.defaultConfiguration to defaultConfigurationName to clarify it's a name of a configuration * SemanticConfiguration.semanticPriorizedFields -> prioritizedFields as semantic is redundant * Remove VectorQuery changes as they aren't final * Remove SearchRequest.vectorQueries rename, fixed typo in SemanticSearch * Add custom word
1 parent d03fbbc commit 58e92dd

File tree

5 files changed

+58
-15
lines changed

5 files changed

+58
-15
lines changed

custom-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3738,6 +3738,7 @@ usedCPUMHz
37383738
totalCPUMHz
37393739
docon
37403740
DialOut
3741+
Vectorizable
37413742
vectorizers
37423743
Entra
37433744

specification/search/data-plane/Azure.Search/preview/2023-10-01-Preview/searchindex.json

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@
266266
"fail"
267267
],
268268
"x-ms-enum": {
269-
"name": "SemanticErrorHandling",
269+
"name": "SemanticErrorMode",
270270
"modelAsString": true,
271271
"values": [
272272
{
@@ -405,7 +405,7 @@
405405
"extractive"
406406
],
407407
"x-ms-enum": {
408-
"name": "Answers",
408+
"name": "QueryAnswerType",
409409
"modelAsString": true,
410410
"values": [
411411
{
@@ -535,7 +535,7 @@
535535
"extractive"
536536
],
537537
"x-ms-enum": {
538-
"name": "Captions",
538+
"name": "QueryCaptionType",
539539
"modelAsString": true,
540540
"values": [
541541
{
@@ -1214,6 +1214,7 @@
12141214
"description": "A single bucket of a facet query result. Reports the number of documents with a field value falling within a particular range or having a particular value or interval."
12151215
},
12161216
"AnswerResult": {
1217+
"x-ms-client-name": "QueryAnswerResult",
12171218
"properties": {
12181219
"score": {
12191220
"type": "number",
@@ -1242,6 +1243,7 @@
12421243
"description": "An answer is a text passage extracted from the contents of the most relevant documents that matched the query. Answers are extracted from the top search results. Answer candidates are scored and the top answers are selected."
12431244
},
12441245
"CaptionResult": {
1246+
"x-ms-client-name": "QueryCaptionResult",
12451247
"properties": {
12461248
"text": {
12471249
"type": "string",
@@ -1266,7 +1268,7 @@
12661268
"transient"
12671269
],
12681270
"x-ms-enum": {
1269-
"name": "SemanticPartialResponseReason",
1271+
"name": "SemanticErrorReason",
12701272
"modelAsString": true,
12711273
"values": [
12721274
{
@@ -1295,7 +1297,7 @@
12951297
"rerankedResults"
12961298
],
12971299
"x-ms-enum": {
1298-
"name": "SemanticPartialResponseType",
1300+
"name": "SemanticSearchResultsType",
12991301
"modelAsString": true,
13001302
"values": [
13011303
{
@@ -1378,7 +1380,7 @@
13781380
"partial"
13791381
],
13801382
"x-ms-enum": {
1381-
"name": "QueryResultDocumentSemanticFieldState",
1383+
"name": "SemanticFieldState",
13821384
"modelAsString": true,
13831385
"values": [
13841386
{
@@ -1678,7 +1680,7 @@
16781680
"fail"
16791681
],
16801682
"x-ms-enum": {
1681-
"name": "SemanticErrorHandling",
1683+
"name": "SemanticErrorMode",
16821684
"modelAsString": true,
16831685
"values": [
16841686
{
@@ -1891,6 +1893,9 @@
18911893
"description": "The vector representation of a search query."
18921894
}
18931895
},
1896+
"required": [
1897+
"vector"
1898+
],
18941899
"description": "The query parameters to use for vector search when a raw vector value is provided."
18951900
},
18961901
"VectorizableTextQuery": {
@@ -1907,6 +1912,9 @@
19071912
"description": "The text to be vectorized to perform a vector search query."
19081913
}
19091914
},
1915+
"required": [
1916+
"text"
1917+
],
19101918
"description": "The query parameters to use for vector search when a text value that needs to be vectorized is provided."
19111919
},
19121920
"VectorQueryKind": {

specification/search/data-plane/Azure.Search/preview/2023-10-01-Preview/searchservice.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6049,8 +6049,10 @@
60496049
"description": "Ranking function based on the Okapi BM25 similarity algorithm. BM25 is a TF-IDF-like algorithm that includes length normalization (controlled by the 'b' parameter) as well as term frequency saturation (controlled by the 'k1' parameter)."
60506050
},
60516051
"SemanticSettings": {
6052+
"x-ms-client-name": "SemanticSearch",
60526053
"properties": {
60536054
"defaultConfiguration": {
6055+
"x-ms-client-name": "defaultConfigurationName",
60546056
"type": "string",
60556057
"description": "Allows you to set the name of a default semantic configuration in your index, making it optional to pass it on as a query parameter every time."
60566058
},
@@ -6093,19 +6095,22 @@
60936095
"description": "Defines a specific configuration to be used in the context of semantic capabilities."
60946096
},
60956097
"PrioritizedFields": {
6098+
"x-ms-client-name": "SemanticPrioritizedFields",
60966099
"properties": {
60976100
"titleField": {
60986101
"$ref": "#/definitions/SemanticField",
60996102
"description": "Defines the title field to be used for semantic ranking, captions, highlights, and answers. If you don't have a title field in your index, leave this blank."
61006103
},
61016104
"prioritizedContentFields": {
6105+
"x-ms-client-name": "contentFields",
61026106
"type": "array",
61036107
"items": {
61046108
"$ref": "#/definitions/SemanticField"
61056109
},
61066110
"description": "Defines the content fields to be used for semantic ranking, captions, highlights, and answers. For the best result, the selected fields should contain text in natural language form. The order of the fields in the array represents their priority. Fields with lower priority may get truncated if the content is long."
61076111
},
61086112
"prioritizedKeywordsFields": {
6113+
"x-ms-client-name": "keywordsFields",
61096114
"type": "array",
61106115
"items": {
61116116
"$ref": "#/definitions/SemanticField"
@@ -6126,6 +6131,9 @@
61266131
"x-nullable": false
61276132
}
61286133
},
6134+
"required": [
6135+
"fieldName"
6136+
],
61296137
"description": "A field that is used as part of the semantic configuration."
61306138
},
61316139
"VectorSearch": {
@@ -6167,6 +6175,7 @@
61676175
"x-nullable": false
61686176
},
61696177
"algorithm": {
6178+
"x-ms-client-name": "algorithmConfigurationName",
61706179
"type": "string",
61716180
"description": "The name of the vector search algorithm configuration that specifies the algorithm and optional parameters.",
61726181
"x-nullable": false
@@ -6208,6 +6217,7 @@
62086217
"description": "Contains configuration options specific to the algorithm used during indexing or querying."
62096218
},
62106219
"HnswVectorSearchAlgorithmConfiguration": {
6220+
"x-ms-client-name": "HnswAlgorithmConfiguration",
62116221
"type": "object",
62126222
"x-ms-discriminator-value": "hnsw",
62136223
"allOf": [
@@ -6263,6 +6273,7 @@
62636273
"description": "Contains the parameters specific to the HNSW algorithm."
62646274
},
62656275
"ExhaustiveKnnVectorSearchAlgorithmConfiguration": {
6276+
"x-ms-client-name": "ExhaustiveKnnAlgorithmConfiguration",
62666277
"type": "object",
62676278
"x-ms-discriminator-value": "exhaustiveKnn",
62686279
"allOf": [
@@ -7646,6 +7657,7 @@
76467657
"x-nullable": true
76477658
},
76487659
"dimensions": {
7660+
"x-ms-client-name": "vectorSearchDimensions",
76497661
"type": "integer",
76507662
"format": "int32",
76517663
"x-nullable": true,
@@ -7654,6 +7666,7 @@
76547666
"description": "The dimensionality of the vector field."
76557667
},
76567668
"vectorSearchProfile": {
7669+
"x-ms-client-name": "vectorSearchProfileName",
76577670
"type": "string",
76587671
"x-nullable": true,
76597672
"description": "The name of the vector search profile that specifies the algorithm and vectorizer to use when searching the vector field."
@@ -8174,7 +8187,7 @@
81748187
"externalDocs": {
81758188
"url": "https://docs.microsoft.com/azure/search/semantic-search-overview"
81768189
},
8177-
"x-ms-client-name": "SemanticSettings",
8190+
"x-ms-client-name": "SemanticSearch",
81788191
"x-nullable": true
81798192
},
81808193
"vectorSearch": {
@@ -9158,6 +9171,7 @@
91589171
"description": "A parameter that provides various ways to mask the personal information detected in the input text. Default is 'none'."
91599172
},
91609173
"maskingCharacter": {
9174+
"x-ms-client-name": "mask",
91619175
"type": "string",
91629176
"x-nullable": true,
91639177
"maxLength": 1,
@@ -9376,6 +9390,7 @@
93769390
"authResourceId": {
93779391
"type": "string",
93789392
"x-nullable": true,
9393+
"x-ms-format": "arm-id",
93799394
"description": "Applies to custom skills that connect to external code in an Azure function or some other application that provides the transformations. This value should be the application ID created for the function or app when it was registered with Azure Active Directory. When specified, the custom skill connects to the function or app using a managed ID (either system or user-assigned) of the search service and the access token of the function or app, using this value as the resource id for creating the scope of the access token."
93809395
},
93819396
"authIdentity": {

specification/search/data-plane/Azure.Search/stable/2023-11-01/searchindex.json

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@
379379
"fail"
380380
],
381381
"x-ms-enum": {
382-
"name": "SemanticErrorHandling",
382+
"name": "SemanticErrorMode",
383383
"modelAsString": true,
384384
"values": [
385385
{
@@ -419,7 +419,7 @@
419419
"extractive"
420420
],
421421
"x-ms-enum": {
422-
"name": "Answers",
422+
"name": "QueryAnswerType",
423423
"modelAsString": true,
424424
"values": [
425425
{
@@ -448,7 +448,7 @@
448448
"extractive"
449449
],
450450
"x-ms-enum": {
451-
"name": "Captions",
451+
"name": "QueryCaptionType",
452452
"modelAsString": true,
453453
"values": [
454454
{
@@ -1451,6 +1451,9 @@
14511451
"description": "The vector representation of a search query."
14521452
}
14531453
},
1454+
"required": [
1455+
"vector"
1456+
],
14541457
"description": "The query parameters to use for vector search when a raw vector value is provided."
14551458
},
14561459
"VectorQueryKind": {
@@ -1870,6 +1873,7 @@
18701873
"description": "Describes an error condition for the API."
18711874
},
18721875
"AnswerResult": {
1876+
"x-ms-client-name": "QueryAnswerResult",
18731877
"properties": {
18741878
"score": {
18751879
"type": "number",
@@ -1898,6 +1902,7 @@
18981902
"description": "An answer is a text passage extracted from the contents of the most relevant documents that matched the query. Answers are extracted from the top search results. Answer candidates are scored and the top answers are selected."
18991903
},
19001904
"CaptionResult": {
1905+
"x-ms-client-name": "QueryCaptionResult",
19011906
"properties": {
19021907
"text": {
19031908
"type": "string",
@@ -1922,7 +1927,7 @@
19221927
"transient"
19231928
],
19241929
"x-ms-enum": {
1925-
"name": "SemanticPartialResponseReason",
1930+
"name": "SemanticErrorReason",
19261931
"modelAsString": true,
19271932
"values": [
19281933
{
@@ -1951,7 +1956,7 @@
19511956
"rerankedResults"
19521957
],
19531958
"x-ms-enum": {
1954-
"name": "SemanticPartialResponseType",
1959+
"name": "SemanticSearchResultsType",
19551960
"modelAsString": true,
19561961
"values": [
19571962
{
@@ -1975,7 +1980,7 @@
19751980
"fail"
19761981
],
19771982
"x-ms-enum": {
1978-
"name": "SemanticErrorHandling",
1983+
"name": "SemanticErrorMode",
19791984
"modelAsString": true,
19801985
"values": [
19811986
{

specification/search/data-plane/Azure.Search/stable/2023-11-01/searchservice.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5568,6 +5568,7 @@
55685568
"x-nullable": false
55695569
},
55705570
"algorithm": {
5571+
"x-ms-client-name": "algorithmConfigurationName",
55715572
"type": "string",
55725573
"description": "The name of the vector search algorithm configuration that specifies the algorithm and optional parameters.",
55735574
"x-nullable": false
@@ -5604,6 +5605,7 @@
56045605
"description": "Contains configuration options specific to the algorithm used during indexing or querying."
56055606
},
56065607
"HnswVectorSearchAlgorithmConfiguration": {
5608+
"x-ms-client-name": "HnswAlgorithmConfiguration",
56075609
"type": "object",
56085610
"x-ms-discriminator-value": "hnsw",
56095611
"allOf": [
@@ -5659,6 +5661,7 @@
56595661
"description": "Contains the parameters specific to the HNSW algorithm."
56605662
},
56615663
"ExhaustiveKnnVectorSearchAlgorithmConfiguration": {
5664+
"x-ms-client-name": "ExhaustiveKnnAlgorithmConfiguration",
56625665
"type": "object",
56635666
"x-ms-discriminator-value": "exhaustiveKnn",
56645667
"allOf": [
@@ -6732,6 +6735,7 @@
67326735
"x-nullable": true
67336736
},
67346737
"dimensions": {
6738+
"x-ms-client-name": "vectorSearchDimensions",
67356739
"type": "integer",
67366740
"format": "int32",
67376741
"x-nullable": true,
@@ -6740,6 +6744,7 @@
67406744
"description": "The dimensionality of the vector field."
67416745
},
67426746
"vectorSearchProfile": {
6747+
"x-ms-client-name": "vectorSearchProfileName",
67436748
"type": "string",
67446749
"x-nullable": true,
67456750
"description": "The name of the vector search profile that specifies the algorithm to use when searching the vector field."
@@ -7250,7 +7255,7 @@
72507255
"externalDocs": {
72517256
"url": "https://learn.microsoft.com/azure/search/semantic-search-overview"
72527257
},
7253-
"x-ms-client-name": "SemanticSettings",
7258+
"x-ms-client-name": "SemanticSearch",
72547259
"x-nullable": true
72557260
},
72567261
"vectorSearch": {
@@ -8074,6 +8079,7 @@
80748079
"description": "A parameter that provides various ways to mask the personal information detected in the input text. Default is 'none'."
80758080
},
80768081
"maskingCharacter": {
8082+
"x-ms-client-name": "mask",
80778083
"type": "string",
80788084
"x-nullable": true,
80798085
"maxLength": 1,
@@ -10758,8 +10764,10 @@
1075810764
"description": "Describes an error condition for the API."
1075910765
},
1076010766
"SemanticSettings": {
10767+
"x-ms-client-name": "SemanticSearch",
1076110768
"properties": {
1076210769
"defaultConfiguration": {
10770+
"x-ms-client-name": "defaultConfigurationName",
1076310771
"type": "string",
1076410772
"description": "Allows you to set the name of a default semantic configuration in your index, making it optional to pass it on as a query parameter every time."
1076510773
},
@@ -10802,19 +10810,22 @@
1080210810
"description": "Defines a specific configuration to be used in the context of semantic capabilities."
1080310811
},
1080410812
"PrioritizedFields": {
10813+
"x-ms-client-name": "SemanticPrioritizedFields",
1080510814
"properties": {
1080610815
"titleField": {
1080710816
"$ref": "#/definitions/SemanticField",
1080810817
"description": "Defines the title field to be used for semantic ranking, captions, highlights, and answers. If you don't have a title field in your index, leave this blank."
1080910818
},
1081010819
"prioritizedContentFields": {
10820+
"x-ms-client-name": "contentFields",
1081110821
"type": "array",
1081210822
"items": {
1081310823
"$ref": "#/definitions/SemanticField"
1081410824
},
1081510825
"description": "Defines the content fields to be used for semantic ranking, captions, highlights, and answers. For the best result, the selected fields should contain text in natural language form. The order of the fields in the array represents their priority. Fields with lower priority may get truncated if the content is long."
1081610826
},
1081710827
"prioritizedKeywordsFields": {
10828+
"x-ms-client-name": "keywordsFields",
1081810829
"type": "array",
1081910830
"items": {
1082010831
"$ref": "#/definitions/SemanticField"
@@ -10835,6 +10846,9 @@
1083510846
"x-nullable": false
1083610847
}
1083710848
},
10849+
"required": [
10850+
"fieldName"
10851+
],
1083810852
"description": "A field that is used as part of the semantic configuration."
1083910853
}
1084010854
},

0 commit comments

Comments
 (0)