Skip to content

Commit

Permalink
Merge pull request #26 from brjohnstmsft/specfixes-pr
Browse files Browse the repository at this point in the history
Search SDK: Updates and fixes to Azure Search Swagger specs
  • Loading branch information
Hovsep committed Oct 15, 2015
2 parents 3f43f35 + 7046e43 commit 934feb3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 35 deletions.
14 changes: 12 additions & 2 deletions search/2015-02-28/swagger/searchindex.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,21 @@
},
"definitions": {
"IndexResult": {
"properties": {}
"properties": {
"key": {
"type": "string",
"description": "Gets the key of a document that was in the indexing request."
},
"errorMessage": {
"type": "string",
"description": "Gets the error message explaining why the indexing operation failed for the document identified by Key; null if Succeeded is true."
}
},
"description": "Status of an indexing operation for a single document."
},
"DocumentIndexResult": {
"properties": {
"results": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/IndexResult"
Expand Down
51 changes: 18 additions & 33 deletions search/2015-02-28/swagger/searchservice.json
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,13 @@
"url": "https://msdn.microsoft.com/library/azure/dn798923.aspx"
},
"parameters": [
{
"name": "$select",
"in": "query",
"required": false,
"type": "string",
"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."
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
Expand Down Expand Up @@ -775,6 +782,7 @@
"properties": {
"interval": {
"type": "string",
"format": "duration",
"description": "Gets or sets the interval of time between indexer executions."
},
"startTime": {
Expand Down Expand Up @@ -966,30 +974,6 @@
"type": "string",
"description": "Gets or sets the data type of the field."
},
"key": {
"type": "boolean",
"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."
},
"searchable": {
"type": "boolean",
"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."
},
"filterable": {
"type": "boolean",
"description": "Gets or sets a value indicating whether the field can be used in filter expressions. Default is false."
},
"sortable": {
"type": "boolean",
"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."
},
"facetable": {
"type": "boolean",
"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."
},
"retrievable": {
"type": "boolean",
"description": "Gets or sets a value indicating whether the field can be returned in a search result. Default is true."
},
"analyzer": {
"externalDocs": {
"url": "https://msdn.microsoft.com/library/azure/dn879793.aspx"
Expand Down Expand Up @@ -1100,6 +1084,7 @@
"properties": {
"boostingDuration": {
"type": "string",
"format": "duration",
"description": "Gets or sets the expiration period after which boosting will stop for a particular document."
}
},
Expand Down Expand Up @@ -1341,13 +1326,13 @@
"description": "Response from a List Indexes request. If successful, it includes the full definitions of all indexes."
}
},
"parameters": {
"ApiVersionParameter": {
"name": "api-version",
"in": "query",
"required": true,
"type": "string",
"description": "Client Api Version."
}
"parameters": {
"ApiVersionParameter": {
"name": "api-version",
"in": "query",
"required": true,
"type": "string",
"description": "Client Api Version."
}
}
}
}

0 comments on commit 934feb3

Please sign in to comment.