Skip to content

Commit 934feb3

Browse files
author
Hovsep
committed
Merge pull request #26 from brjohnstmsft/specfixes-pr
Search SDK: Updates and fixes to Azure Search Swagger specs
2 parents 3f43f35 + 7046e43 commit 934feb3

2 files changed

Lines changed: 30 additions & 35 deletions

File tree

search/2015-02-28/swagger/searchindex.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,21 @@
4141
},
4242
"definitions": {
4343
"IndexResult": {
44-
"properties": {}
44+
"properties": {
45+
"key": {
46+
"type": "string",
47+
"description": "Gets the key of a document that was in the indexing request."
48+
},
49+
"errorMessage": {
50+
"type": "string",
51+
"description": "Gets the error message explaining why the indexing operation failed for the document identified by Key; null if Succeeded is true."
52+
}
53+
},
54+
"description": "Status of an indexing operation for a single document."
4555
},
4656
"DocumentIndexResult": {
4757
"properties": {
48-
"results": {
58+
"value": {
4959
"type": "array",
5060
"items": {
5161
"$ref": "#/definitions/IndexResult"

search/2015-02-28/swagger/searchservice.json

Lines changed: 18 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,13 @@
475475
"url": "https://msdn.microsoft.com/library/azure/dn798923.aspx"
476476
},
477477
"parameters": [
478+
{
479+
"name": "$select",
480+
"in": "query",
481+
"required": false,
482+
"type": "string",
483+
"description": "Selects which properties of the index definitions to retrieve. Specified as a comma-separated list of JSON property names, or '*' for all properties. The default is all properties."
484+
},
478485
{
479486
"$ref": "#/parameters/ApiVersionParameter"
480487
}
@@ -775,6 +782,7 @@
775782
"properties": {
776783
"interval": {
777784
"type": "string",
785+
"format": "duration",
778786
"description": "Gets or sets the interval of time between indexer executions."
779787
},
780788
"startTime": {
@@ -966,30 +974,6 @@
966974
"type": "string",
967975
"description": "Gets or sets the data type of the field."
968976
},
969-
"key": {
970-
"type": "boolean",
971-
"description": "Gets or sets a value indicating whether the field is the key of the index. Valid only for string fields. Every index must have exactly one key field."
972-
},
973-
"searchable": {
974-
"type": "boolean",
975-
"description": "Gets or sets a value indicating whether the field is included in full-text searches. Valid only forstring or string collection fields. Default is false."
976-
},
977-
"filterable": {
978-
"type": "boolean",
979-
"description": "Gets or sets a value indicating whether the field can be used in filter expressions. Default is false."
980-
},
981-
"sortable": {
982-
"type": "boolean",
983-
"description": "Gets or sets a value indicating whether the field can be used in orderby expressions. Not valid for string collection fields. Default is false."
984-
},
985-
"facetable": {
986-
"type": "boolean",
987-
"description": "Gets or sets a value indicating whether it is possible to facet on this field. Not valid for geo-point fields. Default is false."
988-
},
989-
"retrievable": {
990-
"type": "boolean",
991-
"description": "Gets or sets a value indicating whether the field can be returned in a search result. Default is true."
992-
},
993977
"analyzer": {
994978
"externalDocs": {
995979
"url": "https://msdn.microsoft.com/library/azure/dn879793.aspx"
@@ -1100,6 +1084,7 @@
11001084
"properties": {
11011085
"boostingDuration": {
11021086
"type": "string",
1087+
"format": "duration",
11031088
"description": "Gets or sets the expiration period after which boosting will stop for a particular document."
11041089
}
11051090
},
@@ -1341,13 +1326,13 @@
13411326
"description": "Response from a List Indexes request. If successful, it includes the full definitions of all indexes."
13421327
}
13431328
},
1344-
"parameters": {
1345-
"ApiVersionParameter": {
1346-
"name": "api-version",
1347-
"in": "query",
1348-
"required": true,
1349-
"type": "string",
1350-
"description": "Client Api Version."
1351-
}
1329+
"parameters": {
1330+
"ApiVersionParameter": {
1331+
"name": "api-version",
1332+
"in": "query",
1333+
"required": true,
1334+
"type": "string",
1335+
"description": "Client Api Version."
13521336
}
1353-
}
1337+
}
1338+
}

0 commit comments

Comments
 (0)