Skip to content
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 tsp #31123

Draft
wants to merge 89 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
cc4abfe
TSP - search service
xiangyan99 Jul 31, 2024
efdf6c8
add config
xiangyan99 Jul 31, 2024
a8d0a26
update config
xiangyan99 Jul 31, 2024
641369c
update
xiangyan99 Aug 2, 2024
73ef09a
update
xiangyan99 Aug 9, 2024
6dc3e35
update
xiangyan99 Oct 2, 2024
eb57f71
updates
xiangyan99 Oct 10, 2024
8804616
update
xiangyan99 Oct 11, 2024
84c3209
update
xiangyan99 Oct 11, 2024
d7e7d9a
update
xiangyan99 Oct 11, 2024
ecfeafb
update
xiangyan99 Oct 11, 2024
1be8dc4
update
xiangyan99 Oct 14, 2024
ee863d1
update
xiangyan99 Oct 14, 2024
d993324
update
xiangyan99 Oct 14, 2024
77f3470
update
xiangyan99 Oct 16, 2024
ecfba8c
update
xiangyan99 Oct 16, 2024
4b9426f
update
xiangyan99 Oct 21, 2024
a68eea7
Merge branch 'main' into search_tsp
xiangyan99 Oct 21, 2024
dc2f235
Update specification/search/Azure.Search/main.tsp
xiangyan99 Oct 24, 2024
eac2530
Update specification/search/Azure.Search/main.tsp
xiangyan99 Oct 24, 2024
536a123
Update specification/search/Azure.Search/main.tsp
xiangyan99 Oct 24, 2024
cdb947a
updates
xiangyan99 Oct 25, 2024
728fbc6
update
xiangyan99 Oct 29, 2024
9a243df
add examples
xiangyan99 Oct 29, 2024
771fea6
more examples
xiangyan99 Oct 29, 2024
9cce3ac
update
xiangyan99 Oct 29, 2024
bfcf730
update
xiangyan99 Nov 1, 2024
a04a073
Merge branch 'main' into search_tsp
xiangyan99 Nov 1, 2024
34dd5df
add openapi files
xiangyan99 Nov 1, 2024
9a67974
Update specification/search/Azure.Search/models-shared.tsp
xiangyan99 Nov 5, 2024
4fcaf0d
Update specification/search/Azure.Search/routes-index.tsp
xiangyan99 Nov 5, 2024
6e0c88b
update
xiangyan99 Nov 5, 2024
e1ab20d
update
xiangyan99 Nov 5, 2024
49e6b83
update
xiangyan99 Nov 6, 2024
2cfcda0
update
xiangyan99 Nov 7, 2024
544f5bb
Update specification/search/Azure.Search/models-service.tsp
xiangyan99 Nov 7, 2024
009589d
formatting
xiangyan99 Nov 7, 2024
91a6142
Merge branch 'search_tsp' of https://github.com/Azure/azure-rest-api-…
xiangyan99 Nov 7, 2024
8d665d4
update
xiangyan99 Nov 12, 2024
c11b255
update
xiangyan99 Nov 12, 2024
99dc76b
update
xiangyan99 Nov 12, 2024
78cf5df
update
xiangyan99 Nov 12, 2024
6835b53
update
xiangyan99 Nov 12, 2024
321baf9
update
xiangyan99 Dec 2, 2024
f23afc2
Merge branch 'main' into search_tsp
xiangyan99 Dec 2, 2024
2a53899
update
xiangyan99 Dec 2, 2024
6b586a6
Merge branch 'search_tsp' of https://github.com/Azure/azure-rest-api-…
xiangyan99 Dec 2, 2024
df9dbfd
update
xiangyan99 Dec 2, 2024
54f8690
update
xiangyan99 Dec 2, 2024
6cca84c
update
xiangyan99 Dec 2, 2024
8cbc6ee
update
xiangyan99 Dec 2, 2024
bd8bbc0
updates
xiangyan99 Dec 2, 2024
5dc6943
update
xiangyan99 Dec 2, 2024
1927d85
update
xiangyan99 Dec 2, 2024
9958902
update
xiangyan99 Dec 2, 2024
91a09b7
Update specification/search/Azure.Search/models-index.tsp
xiangyan99 Jan 21, 2025
f9aca09
Update specification/search/Azure.Search/models-index.tsp
xiangyan99 Jan 21, 2025
4af6f6a
Update specification/search/Azure.Search/models-index.tsp
xiangyan99 Jan 21, 2025
9a2ed64
Update specification/search/Azure.Search/models-index.tsp
xiangyan99 Jan 21, 2025
a0e55d7
get main
xiangyan99 Jan 21, 2025
69a824d
update cspell
xiangyan99 Jan 21, 2025
c7e32d4
updates
xiangyan99 Jan 21, 2025
0ba00f8
update
xiangyan99 Jan 21, 2025
3eebe92
update
xiangyan99 Jan 21, 2025
70af11a
add service and index projects
xiangyan99 Jan 28, 2025
8ac536a
Merge branch 'main' into search_tsp
xiangyan99 Jan 28, 2025
880599a
add examples
xiangyan99 Jan 28, 2025
8433d6b
update
xiangyan99 Jan 28, 2025
2352dec
update
xiangyan99 Jan 28, 2025
b94472a
update
xiangyan99 Jan 29, 2025
50a2233
update
xiangyan99 Jan 29, 2025
bafb925
add readme
xiangyan99 Jan 29, 2025
3381064
update
xiangyan99 Jan 29, 2025
ad5786c
update
xiangyan99 Jan 29, 2025
a4dcde6
update
xiangyan99 Jan 29, 2025
8145c23
update
xiangyan99 Jan 29, 2025
3f76191
updates
xiangyan99 Jan 29, 2025
b5dba60
Merge branch 'main' into search_tsp
xiangyan99 Jan 29, 2025
cdd6d7d
updates
xiangyan99 Jan 31, 2025
8edc570
Merge branch 'main' into search_tsp
xiangyan99 Jan 31, 2025
5de571e
updates
xiangyan99 Jan 31, 2025
3722469
updates
xiangyan99 Feb 3, 2025
f4d3f5b
updates
xiangyan99 Feb 3, 2025
1934104
Merge branch 'main' into search_tsp
xiangyan99 Feb 3, 2025
1dafca0
update
xiangyan99 Feb 5, 2025
98e2368
Merge branch 'search_tsp' of https://github.com/Azure/azure-rest-api-…
xiangyan99 Feb 5, 2025
9aa4e94
update
xiangyan99 Feb 5, 2025
b3f2850
update
xiangyan99 Feb 7, 2025
f69181a
update
xiangyan99 Feb 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cspell.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '0.2'

Check failure on line 1 in cspell.yaml

View workflow job for this annotation

GitHub Actions / Protected Files

File 'cspell.yaml' should only be updated by the Azure SDK team. If intentional, the PR may be merged by the Azure SDK team via bypassing the branch protections.
language: en
flagWords:
- teh
Expand Down Expand Up @@ -35,6 +35,7 @@
- byos
- cadl
- contoso
- discretizing
- eastus
- entra
- fqdns
Expand All @@ -48,6 +49,7 @@
- onboarded
- payg
- regen
- rerank
- rpaas
- skus
- vmss
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"operationId": "Documents_AutocompleteGet",
"title": "SearchIndexAutocompleteDocumentsGet",
"parameters": {
"endpoint": "https://myservice.search.windows.net",
"indexName": "myindex",
"api-version": "2024-07-01",
"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,38 @@
{
"operationId": "Documents_AutocompletePost",
"title": "SearchIndexAutocompleteDocumentsPost",
"parameters": {
"endpoint": "https://myservice.search.windows.net",
"indexName": "myindex",
"api-version": "2024-07-01",
"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,14 @@
{
"operationId": "Documents_Count",
"title": "SearchIndexCountDocuments",
"parameters": {
"endpoint": "https://myservice.search.windows.net",
"indexName": "myindex",
"api-version": "2024-07-01"
},
"responses": {
"200": {
"body": 427
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"operationId": "Documents_Get",
"title": "SearchIndexGetDocument",
"parameters": {
"endpoint": "https://exampleservice.search.windows.net",
"indexName": "getdocumentexample",
"key": "1",
"$select": [
"docId",
"title",
"description"
],
"api-version": "2024-07-01",
"x-ms-client-request-id": "00000000-0000-0000-0000-000000000000"
},
"responses": {
"200": {
"body": {
"docId": "1",
"title": "Nice Hotel",
"description": "Cheapest hotel in town"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"operationId": "Documents_Index",
"title": "SearchIndexIndexDocuments",
"parameters": {
"endpoint": "https://exampleservice.search.windows.net",
"indexName": "indexdocumentsexample",
"api-version": "2024-07-01",
"x-ms-client-request-id": "00000000-0000-0000-0000-000000000000",
"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": 200
},
{
"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": 201
},
{
"key": "2",
"status": false,
"errorMessage": "Document not found.",
"statusCode": 404
},
{
"key": "3",
"status": true,
"errorMessage": null,
"statusCode": 201
},
{
"key": "4",
"status": true,
"errorMessage": null,
"statusCode": 200
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"operationId": "Documents_SearchGet",
"title": "SearchIndexSearchDocumentsGet",
"parameters": {
"endpoint": "https://myservice.search.windows.net",
"indexName": "myindex",
"api-version": "2024-07-01",
"$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
Loading