Skip to content

Commit

Permalink
[Azure Cognitive Search] New API version 2023-10-01-Preview (#25657)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Careyjmac authored Sep 15, 2023
1 parent 82e7e30 commit 35bc964
Show file tree
Hide file tree
Showing 51 changed files with 18,960 additions and 2 deletions.
3 changes: 2 additions & 1 deletion custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3739,4 +3739,5 @@ vnetblock
usedCPUMHz
totalCPUMHz
docon
DialOut
DialOut
vectorizers
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"parameters": {
"endpoint": "https://myservice.search.windows.net",
"indexName": "myindex",
"api-version": "2023-10-01-Preview",
"autocompleteMode": "oneTerm",
"search": "washington medic",
"suggesterName": "sg",
"filter": "search.in(docId,'101,102,105')",
"fuzzy": false,
"highlightPostTag": "</em>",
"highlightPreTag": "<em>",
"minimumCoverage": 80,
"searchFields": [
"title",
"description"
],
"top": 10
},
"responses": {
"200": {
"body": [
{
"text": "medicaid",
"queryPlusText": "washington medicaid"
},
{
"text": "medicare",
"queryPlusText": "washington medicare"
},
{
"text": "medicine",
"queryPlusText": "washington medicine"
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"endpoint": "https://myservice.search.windows.net",
"indexName": "myindex",
"api-version": "2023-10-01-Preview",
"autocompleteRequest": {
"autocompleteMode": "oneTerm",
"search": "washington medic",
"suggesterName": "sg",
"filter": "search.in(docId,'101,102,105')",
"highlightPostTag": "</em>",
"highlightPreTag": "<em>",
"minimumCoverage": 80,
"searchFields": "title,description",
"top": 10
}
},
"responses": {
"200": {
"body": [
{
"text": "medicaid",
"queryPlusText": "washington medicaid"
},
{
"text": "medicare",
"queryPlusText": "washington medicare"
},
{
"text": "medicine",
"queryPlusText": "washington medicine"
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"endpoint": "https://myservice.search.windows.net",
"indexName": "myindex",
"api-version": "2023-10-01-Preview"
},
"responses": {
"200": {
"body": 427
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"endpoint": "https://myservice.search.windows.net",
"indexName": "myindex",
"api-version": "2023-10-01-Preview",
"key": "1",
"$select": [
"docId",
"title",
"description"
]
},
"responses": {
"200": {
"body": {
"description": "Cheapest hotel in town",
"docId": "1",
"title": "Nice Hotel"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
"parameters": {
"endpoint": "https://myservice.search.windows.net",
"indexName": "myindex",
"api-version": "2023-10-01-Preview",
"batch": {
"value": [
{
"@search.action": "upload",
"docId": "1",
"title": "Fancy Stay",
"description": "Best hotel in town"
},
{
"@search.action": "merge",
"docId": "2",
"title": "Roach Motel"
},
{
"@search.action": "mergeOrUpload",
"docId": "3",
"title": "Econo Motel"
},
{
"@search.action": "delete",
"docId": "4"
}
]
}
},
"responses": {
"200": {
"body": {
"value": [
{
"key": "1",
"status": true,
"errorMessage": null,
"statusCode": 201
},
{
"key": "2",
"status": true,
"errorMessage": null,
"statusCode": 200
},
{
"key": "3",
"status": true,
"errorMessage": null,
"statusCode": 200
},
{
"key": "4",
"status": true,
"errorMessage": null,
"statusCode": 200
}
]
}
},
"207": {
"body": {
"value": [
{
"key": "1",
"status": true,
"errorMessage": null,
"statusCode": 200
},
{
"key": "2",
"status": false,
"errorMessage": "Document not found.",
"statusCode": 404
},
{
"key": "3",
"status": true,
"errorMessage": null,
"statusCode": 200
},
{
"key": "4",
"status": true,
"errorMessage": null,
"statusCode": 200
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"parameters": {
"endpoint": "https://myservice.search.windows.net",
"indexName": "myindex",
"api-version": "2023-10-01-Preview",
"$count": true,
"facet": [
"category,count:10,sort:count"
],
"$filter": "rating gt 10",
"highlight": [
"title"
],
"highlightPostTag": "</em>",
"highlightPreTag": "<em>",
"minimumCoverage": 80,
"$orderby": [
"search.score() desc",
"rating desc"
],
"queryType": "simple",
"sessionId": "mysessionid",
"scoringStatistics": "global",
"scoringParameters": [
"currentLocation--122.123,44.77233"
],
"scoringProfile": "sp",
"search": "nice hotels",
"searchFields": [
"title",
"description"
],
"searchMode": "any",
"$select": [
"docId",
"title",
"description"
],
"$skip": 100,
"$top": 10
},
"responses": {
"200": {
"body": {
"@odata.count": 25,
"@search.coverage": 80,
"@search.facets": {
"category": [
{
"count": 1,
"value": "Economy"
},
{
"count": 1,
"value": "Luxury"
}
]
},
"value": [
{
"@search.score": 1.50,
"@search.highlights": {
"title": [
"<em>Nice</em> <em>Hotel</em>"
]
},
"description": "Cheapest hotel in town",
"docId": "1",
"title": "Nice Hotel"
},
{
"@search.score": 0.70,
"@search.highlights": {
"title": [
"Fancy <em>Hotel</em>"
]
},
"description": "Best hotel in town",
"docId": "2",
"title": "Fancy Hotel"
}
]
}
}
}
}
Loading

0 comments on commit 35bc964

Please sign in to comment.