-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search preview version 2024-03-01-preview #27235
Merged
jhendrixMSFT
merged 17 commits into
Azure:main
from
sazeesha098:sazeesha/search-2024-03-01-preview
Jan 22, 2024
Merged
Changes from 16 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
b0c1f62
baseline for preview search 2024-03-01-preview
sazeesha cec8198
Updating the error response
sazeesha b3a6c06
Update readme.md with new preview version
sazeesha 82ce050
Support narrow data types
sazeesha adda4ab
vectors add stored property
sazeesha aa5e1a3
SpellCheck override for rerank
sazeesha d4e9bbe
Update Support narrow data types
sazeesha e36aa3b
update descriptions
sazeesha 574fca9
Update SpellCheck override
sazeesha a290a63
Swagger PrettierCheck
sazeesha 8595be2
api review feedback
09727dc
update samples
4080f7a
update float16 -> half
d312600
Update examples with renamed properties
sazeesha 5eb4e1e
Use ErrorResponse from common-types
sazeesha 8ac685f
Fix the Tag: package-2024-03 in readme
sazeesha aa18df5
Address comments
sazeesha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...Azure.Search/preview/2024-03-01-Preview/examples/SearchIndexAutocompleteDocumentsGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "2024-03-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" | ||
} | ||
] | ||
} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...zure.Search/preview/2024-03-01-Preview/examples/SearchIndexAutocompleteDocumentsPost.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "2024-03-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" | ||
} | ||
] | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...ata-plane/Azure.Search/preview/2024-03-01-Preview/examples/SearchIndexCountDocuments.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "2024-03-01-Preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": 427 | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...h/data-plane/Azure.Search/preview/2024-03-01-Preview/examples/SearchIndexGetDocument.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "2024-03-01-Preview", | ||
"key": "1", | ||
"$select": [ | ||
"docId", | ||
"title", | ||
"description" | ||
] | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"description": "Cheapest hotel in town", | ||
"docId": "1", | ||
"title": "Nice Hotel" | ||
} | ||
} | ||
} | ||
} |
93 changes: 93 additions & 0 deletions
93
...ata-plane/Azure.Search/preview/2024-03-01-Preview/examples/SearchIndexIndexDocuments.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "2024-03-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 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
86 changes: 86 additions & 0 deletions
86
...plane/Azure.Search/preview/2024-03-01-Preview/examples/SearchIndexSearchDocumentsGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "2024-03-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>" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "Roach Hotel" |
||
] | ||
}, | ||
"description": "Cheapest hotel in town", | ||
"docId": "1", | ||
"title": "Nice Hotel" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Roach Hotel |
||
}, | ||
{ | ||
"@search.score": 0.70, | ||
"@search.highlights": { | ||
"title": [ | ||
"Fancy <em>Hotel</em>" | ||
] | ||
}, | ||
"description": "Best hotel in town", | ||
"docId": "2", | ||
"title": "Fancy Hotel" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Roach Motel -- "Nice Hotel" is odd