Skip to content

Commit b8d48bc

Browse files
wenyangfushmedyang-hai-fengWenyang Fu
authored
Add Semantic configuration to Azure Search specs (#16777)
* Add semantic skeleton * Add query time semantic configuration parameter * Add example for semantic configuration * Update descriptions * Fix syntax issue * IoT Central Public API 1.1-preview Oct Release (#16514) * Add new 2.0-preview.1 version for IoT Central * fix typo on enum value * rollback 1.0 changes, applied 2.0-preview.1 * fix typo * remove non-used examples * fix style * update version from 2.0-preview.1 to 1.1-preview * update code review comments, fix patch consumes with json-patch support, fix examples for fileupload * add nextLink to collection of orgs * fix typo * fix wrong position of paging * fix the paging * add . to description * update default to use enum for api-version * add oct release with query, cde v2, device filter, device template filter, relationship, edge template, simplified template patching * update examples * fix lint error, model validation * fix missing type in examples, remove url format * fix ID case * fix id case * fix ID case * add iotc query language reference * fix typo * Update descriptions + add newly supported languages * Add enum descriptions for languages * Fix syntax and spelling * Fix semantic configuration name * Run prettier * Add sdk naming for semantic * Rename internal semantic object * Add language names * Add MA-in * Add farsi * Fix country name typoes and add spelling entries Co-authored-by: Raouf Merouche <[email protected]> Co-authored-by: Johnson Yang <[email protected]> Co-authored-by: Wenyang Fu <[email protected]>
1 parent a02ebc4 commit b8d48bc

File tree

5 files changed

+633
-2
lines changed

5 files changed

+633
-2
lines changed

custom-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ dacl
479479
dailyforecast
480480
dailyhistorical
481481
darkgrey
482+
Darussalam
482483
databox
483484
Databricks
484485
datacatalog

specification/search/data-plane/Azure.Search/preview/2021-04-30-Preview/examples/SearchServiceCreateIndex.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,34 @@
125125
"@odata.type": "#Microsoft.Azure.Search.BM25Similarity",
126126
"b": 0.5,
127127
"k1": 1.3
128+
},
129+
"semantic": {
130+
"configurations": [
131+
{
132+
"name": "semanticHotels",
133+
"prioritizedFields": {
134+
"titleField": {
135+
"fieldName": "hotelName"
136+
},
137+
"prioritizedContentFields": [
138+
{
139+
"fieldName": "description"
140+
},
141+
{
142+
"fieldName": "description_fr"
143+
}
144+
],
145+
"prioritizedKeywordsFields": [
146+
{
147+
"fieldName": "tags"
148+
},
149+
{
150+
"fieldName": "category"
151+
}
152+
]
153+
}
154+
}
155+
]
128156
}
129157
}
130158
},
@@ -366,6 +394,34 @@
366394
"@odata.type": "#Microsoft.Azure.Search.BM25Similarity",
367395
"b": 0.5,
368396
"k1": 1.3
397+
},
398+
"semantic": {
399+
"configurations": [
400+
{
401+
"name": "semanticHotels",
402+
"prioritizedFields": {
403+
"titleField": {
404+
"fieldName": "hotelName"
405+
},
406+
"prioritizedContentFields": [
407+
{
408+
"fieldName": "description"
409+
},
410+
{
411+
"fieldName": "description_fr"
412+
}
413+
],
414+
"prioritizedKeywordsFields": [
415+
{
416+
"fieldName": "tags"
417+
},
418+
{
419+
"fieldName": "category"
420+
}
421+
]
422+
}
423+
}
424+
]
369425
}
370426
}
371427
}

specification/search/data-plane/Azure.Search/preview/2021-04-30-Preview/examples/SearchServiceCreateOrUpdateIndex.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,34 @@
123123
},
124124
"similarity": {
125125
"@odata.type": "#Microsoft.Azure.Search.ClassicSimilarity"
126+
},
127+
"semantic": {
128+
"configurations": [
129+
{
130+
"name": "semanticHotels",
131+
"prioritizedFields": {
132+
"titleField": {
133+
"fieldName": "hotelName"
134+
},
135+
"prioritizedContentFields": [
136+
{
137+
"fieldName": "description"
138+
},
139+
{
140+
"fieldName": "description_fr"
141+
}
142+
],
143+
"prioritizedKeywordsFields": [
144+
{
145+
"fieldName": "tags"
146+
},
147+
{
148+
"fieldName": "category"
149+
}
150+
]
151+
}
152+
}
153+
]
126154
}
127155
}
128156
},
@@ -591,6 +619,34 @@
591619
"keyVaultKeyVersion": "myKeyVersion-32charAlphaNumericString",
592620
"keyVaultUri": "https://myKeyVault.vault.azure.net",
593621
"accessCredentials": null
622+
},
623+
"semantic": {
624+
"configurations": [
625+
{
626+
"name": "semanticHotels",
627+
"prioritizedFields": {
628+
"titleField": {
629+
"fieldName": "hotelName"
630+
},
631+
"prioritizedContentFields": [
632+
{
633+
"fieldName": "description"
634+
},
635+
{
636+
"fieldName": "description_fr"
637+
}
638+
],
639+
"prioritizedKeywordsFields": [
640+
{
641+
"fieldName": "tags"
642+
},
643+
{
644+
"fieldName": "category"
645+
}
646+
]
647+
}
648+
}
649+
]
594650
}
595651
}
596652
}

0 commit comments

Comments
 (0)