Skip to content

Commit d850f41

Browse files
robertkleeRobert Lee
andauthored
Add aliases to 2021-04-30-preview swagger for Azure search (Azure#17253)
* Add aliases to 2021-04-30-preview swagger for Azure search * add example for aliases in GetServiceStats * prettier changes * fix examples to use aliasName * add discriminator to LexicalNormalizer to fix validation error * fix validation error because of duration string Co-authored-by: Robert Lee <[email protected]>
1 parent bbea558 commit d850f41

File tree

9 files changed

+425
-1
lines changed

9 files changed

+425
-1
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://myservice.search.windows.net",
4+
"api-version": "2021-04-30-Preview",
5+
"alias": {
6+
"name": "production",
7+
"indexes": [
8+
"hotels"
9+
]
10+
}
11+
},
12+
"responses": {
13+
"201": {
14+
"body": {
15+
"name": "production",
16+
"indexes": [
17+
"hotels"
18+
]
19+
}
20+
}
21+
}
22+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://myservice.search.windows.net",
4+
"aliasName": "production",
5+
"api-version": "2021-04-30-Preview",
6+
"Prefer": "return=representation",
7+
"alias": {
8+
"name": "production",
9+
"indexes": [
10+
"hotels"
11+
]
12+
}
13+
},
14+
"responses": {
15+
"200": {
16+
"body": {
17+
"name": "production",
18+
"indexes": [
19+
"hotels"
20+
]
21+
}
22+
},
23+
"201": {
24+
"body": {
25+
"name": "production",
26+
"indexes": [
27+
"hotels"
28+
]
29+
}
30+
}
31+
}
32+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://myservice.search.windows.net",
4+
"aliasName": "staging",
5+
"api-version": "2021-04-30-Preview"
6+
},
7+
"responses": {
8+
"204": {},
9+
"404": {}
10+
}
11+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://myservice.search.windows.net",
4+
"aliasName": "production",
5+
"api-version": "2021-04-30-Preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"name": "production",
11+
"indexes": [
12+
"hotels"
13+
]
14+
}
15+
}
16+
}
17+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
}
8080
],
8181
"limits": {
82-
"maxRunTime": "22:00:00",
82+
"maxRunTime": "P1D",
8383
"maxDocumentExtractionSize": 256000000,
8484
"maxDocumentContentCharactersToExtract": 4000000
8585
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
"200": {
88
"body": {
99
"counters": {
10+
"aliasesCount": {
11+
"usage": 2,
12+
"quota": 3
13+
},
1014
"documentCount": {
1115
"usage": 7093,
1216
"quota": 10000
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://myservice.search.windows.net",
4+
"api-version": "2021-04-30-Preview"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"name": "production",
12+
"indexes": [
13+
"hotels"
14+
]
15+
},
16+
{
17+
"name": "staging",
18+
"indexes": [
19+
"testindex"
20+
]
21+
}
22+
]
23+
}
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)