Skip to content

Commit 5338ef7

Browse files
Careyjmacdargilco
authored andcommitted
[Azure Cognitive Search] New API version 2023-10-01-Preview (#25657)
* Initial commit (copy from 07-01 and rename to 10-01) * Add new IndexProjections feature definition * New SplitSkill parameters * New AzureOpenAIEmbeddingSkill * Miscellaneous existing features that were missing from swagger * Breaking changes to VectorSearch and new Vectorizer option * Add filterType and exhaustive KNN options to vector search. * Fix build errors and update README * Move filter type outside of vector object, and remove single vector query option * Add filterType and exhaustive KNN to 2023-07-01-Preview API * Revert "Add filterType and exhaustive KNN to 2023-07-01-Preview API" This reverts commit 56a0bbd64556a08b29d941406e56db83519ff1c0. * Respond to feedback * Add semanticQuery search parameter * Update default for semanticErrorHandling * Remove AML vectorizer * Update descriptions per feedback
1 parent dc9546a commit 5338ef7

File tree

51 files changed

+18960
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+18960
-2
lines changed

custom-words.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3739,4 +3739,5 @@ vnetblock
37393739
usedCPUMHz
37403740
totalCPUMHz
37413741
docon
3742-
DialOut
3742+
DialOut
3743+
vectorizers
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://myservice.search.windows.net",
4+
"indexName": "myindex",
5+
"api-version": "2023-10-01-Preview",
6+
"autocompleteMode": "oneTerm",
7+
"search": "washington medic",
8+
"suggesterName": "sg",
9+
"filter": "search.in(docId,'101,102,105')",
10+
"fuzzy": false,
11+
"highlightPostTag": "</em>",
12+
"highlightPreTag": "<em>",
13+
"minimumCoverage": 80,
14+
"searchFields": [
15+
"title",
16+
"description"
17+
],
18+
"top": 10
19+
},
20+
"responses": {
21+
"200": {
22+
"body": [
23+
{
24+
"text": "medicaid",
25+
"queryPlusText": "washington medicaid"
26+
},
27+
{
28+
"text": "medicare",
29+
"queryPlusText": "washington medicare"
30+
},
31+
{
32+
"text": "medicine",
33+
"queryPlusText": "washington medicine"
34+
}
35+
]
36+
}
37+
}
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://myservice.search.windows.net",
4+
"indexName": "myindex",
5+
"api-version": "2023-10-01-Preview",
6+
"autocompleteRequest": {
7+
"autocompleteMode": "oneTerm",
8+
"search": "washington medic",
9+
"suggesterName": "sg",
10+
"filter": "search.in(docId,'101,102,105')",
11+
"highlightPostTag": "</em>",
12+
"highlightPreTag": "<em>",
13+
"minimumCoverage": 80,
14+
"searchFields": "title,description",
15+
"top": 10
16+
}
17+
},
18+
"responses": {
19+
"200": {
20+
"body": [
21+
{
22+
"text": "medicaid",
23+
"queryPlusText": "washington medicaid"
24+
},
25+
{
26+
"text": "medicare",
27+
"queryPlusText": "washington medicare"
28+
},
29+
{
30+
"text": "medicine",
31+
"queryPlusText": "washington medicine"
32+
}
33+
]
34+
}
35+
}
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://myservice.search.windows.net",
4+
"indexName": "myindex",
5+
"api-version": "2023-10-01-Preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": 427
10+
}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://myservice.search.windows.net",
4+
"indexName": "myindex",
5+
"api-version": "2023-10-01-Preview",
6+
"key": "1",
7+
"$select": [
8+
"docId",
9+
"title",
10+
"description"
11+
]
12+
},
13+
"responses": {
14+
"200": {
15+
"body": {
16+
"description": "Cheapest hotel in town",
17+
"docId": "1",
18+
"title": "Nice Hotel"
19+
}
20+
}
21+
}
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://myservice.search.windows.net",
4+
"indexName": "myindex",
5+
"api-version": "2023-10-01-Preview",
6+
"batch": {
7+
"value": [
8+
{
9+
"@search.action": "upload",
10+
"docId": "1",
11+
"title": "Fancy Stay",
12+
"description": "Best hotel in town"
13+
},
14+
{
15+
"@search.action": "merge",
16+
"docId": "2",
17+
"title": "Roach Motel"
18+
},
19+
{
20+
"@search.action": "mergeOrUpload",
21+
"docId": "3",
22+
"title": "Econo Motel"
23+
},
24+
{
25+
"@search.action": "delete",
26+
"docId": "4"
27+
}
28+
]
29+
}
30+
},
31+
"responses": {
32+
"200": {
33+
"body": {
34+
"value": [
35+
{
36+
"key": "1",
37+
"status": true,
38+
"errorMessage": null,
39+
"statusCode": 201
40+
},
41+
{
42+
"key": "2",
43+
"status": true,
44+
"errorMessage": null,
45+
"statusCode": 200
46+
},
47+
{
48+
"key": "3",
49+
"status": true,
50+
"errorMessage": null,
51+
"statusCode": 200
52+
},
53+
{
54+
"key": "4",
55+
"status": true,
56+
"errorMessage": null,
57+
"statusCode": 200
58+
}
59+
]
60+
}
61+
},
62+
"207": {
63+
"body": {
64+
"value": [
65+
{
66+
"key": "1",
67+
"status": true,
68+
"errorMessage": null,
69+
"statusCode": 200
70+
},
71+
{
72+
"key": "2",
73+
"status": false,
74+
"errorMessage": "Document not found.",
75+
"statusCode": 404
76+
},
77+
{
78+
"key": "3",
79+
"status": true,
80+
"errorMessage": null,
81+
"statusCode": 200
82+
},
83+
{
84+
"key": "4",
85+
"status": true,
86+
"errorMessage": null,
87+
"statusCode": 200
88+
}
89+
]
90+
}
91+
}
92+
}
93+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://myservice.search.windows.net",
4+
"indexName": "myindex",
5+
"api-version": "2023-10-01-Preview",
6+
"$count": true,
7+
"facet": [
8+
"category,count:10,sort:count"
9+
],
10+
"$filter": "rating gt 10",
11+
"highlight": [
12+
"title"
13+
],
14+
"highlightPostTag": "</em>",
15+
"highlightPreTag": "<em>",
16+
"minimumCoverage": 80,
17+
"$orderby": [
18+
"search.score() desc",
19+
"rating desc"
20+
],
21+
"queryType": "simple",
22+
"sessionId": "mysessionid",
23+
"scoringStatistics": "global",
24+
"scoringParameters": [
25+
"currentLocation--122.123,44.77233"
26+
],
27+
"scoringProfile": "sp",
28+
"search": "nice hotels",
29+
"searchFields": [
30+
"title",
31+
"description"
32+
],
33+
"searchMode": "any",
34+
"$select": [
35+
"docId",
36+
"title",
37+
"description"
38+
],
39+
"$skip": 100,
40+
"$top": 10
41+
},
42+
"responses": {
43+
"200": {
44+
"body": {
45+
"@odata.count": 25,
46+
"@search.coverage": 80,
47+
"@search.facets": {
48+
"category": [
49+
{
50+
"count": 1,
51+
"value": "Economy"
52+
},
53+
{
54+
"count": 1,
55+
"value": "Luxury"
56+
}
57+
]
58+
},
59+
"value": [
60+
{
61+
"@search.score": 1.50,
62+
"@search.highlights": {
63+
"title": [
64+
"<em>Nice</em> <em>Hotel</em>"
65+
]
66+
},
67+
"description": "Cheapest hotel in town",
68+
"docId": "1",
69+
"title": "Nice Hotel"
70+
},
71+
{
72+
"@search.score": 0.70,
73+
"@search.highlights": {
74+
"title": [
75+
"Fancy <em>Hotel</em>"
76+
]
77+
},
78+
"description": "Best hotel in town",
79+
"docId": "2",
80+
"title": "Fancy Hotel"
81+
}
82+
]
83+
}
84+
}
85+
}
86+
}

0 commit comments

Comments
 (0)