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

chore: jsonfmt search #6240

Merged
merged 1 commit into from
Jun 10, 2019
Merged
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
@@ -4,10 +4,10 @@
"title": "SearchIndexClient",
"description": "Client that can be used to query an Azure Search index and upload, merge, or delete documents.",
"version": "2015-02-28-Preview",
"x-ms-code-generation-settings": {
"x-ms-code-generation-settings": {
"useDateTimeOffset": true,
"syncMethods": "None"
}
"syncMethods": "None"
}
},
"consumes": [
"application/json"
@@ -35,7 +35,9 @@
"format": "uuid",
"description": "The tracking ID sent with the request to help with debugging.",
"x-ms-client-request-id": true,
"x-ms-parameter-grouping": { "name": "search-request-options" }
"x-ms-parameter-grouping": {
"name": "search-request-options"
}
},
{
"$ref": "#/parameters/ApiVersionParameter"
@@ -88,7 +90,7 @@
"value": {
"x-ms-client-name": "Results",
"type": "array",
"readOnly": true,
"readOnly": true,
"items": {
"$ref": "#/definitions/IndexingResult"
},
@@ -105,7 +107,9 @@
"mergeOrUpload",
"delete"
],
"x-ms-enum": { "name": "IndexActionType" },
"x-ms-enum": {
"name": "IndexActionType"
},
"description": "Specifies the operation to perform on a document in an indexing batch."
},
"SearchMode": {
@@ -114,7 +118,9 @@
"any",
"all"
],
"x-ms-enum": { "name": "SearchMode" },
"x-ms-enum": {
"name": "SearchMode"
},
"description": "Specifies whether any or all of the search terms must be matched in order to count the document as a match."
},
"QueryType": {
@@ -123,7 +129,9 @@
"simple",
"full"
],
"x-ms-enum": { "name": "QueryType" },
"x-ms-enum": {
"name": "QueryType"
},
"description": "Specifies the syntax of the search query. The default is 'simple'. Use 'full' if your query uses the Lucene query syntax."
},
"SearchParametersPayload": {
@@ -286,4 +294,4 @@
"description": "Client Api Version."
}
}
}
}
Original file line number Diff line number Diff line change
@@ -31,7 +31,9 @@
"format": "uuid",
"description": "Tracking ID sent with the request to help with debugging.",
"x-ms-client-request-id": true,
"x-ms-parameter-grouping": { "name": "search-request-options" }
"x-ms-parameter-grouping": {
"name": "search-request-options"
}
},
{
"$ref": "#/parameters/ApiVersionParameter"
@@ -71,7 +73,7 @@
"properties": {
"value": {
"type": "array",
"readOnly": true,
"readOnly": true,
"items": {
"$ref": "#/definitions/IndexingResult"
},
@@ -89,7 +91,9 @@
"mergeOrUpload",
"delete"
],
"x-ms-enum": { "name": "IndexActionType" },
"x-ms-enum": {
"name": "IndexActionType"
},
"description": "Specifies the operation to perform on a document in an indexing batch."
},
"SearchMode": {
@@ -98,7 +102,9 @@
"any",
"all"
],
"x-ms-enum": { "name": "SearchMode" },
"x-ms-enum": {
"name": "SearchMode"
},
"description": "Specifies whether any or all of the search terms must be matched in order to count the document as a match."
},
"QueryType": {
@@ -107,7 +113,9 @@
"simple",
"full"
],
"x-ms-enum": { "name": "QueryType" },
"x-ms-enum": {
"name": "QueryType"
},
"description": "Specifies the syntax of the search query. The default is 'simple'. Use 'full' if your query uses the Lucene query syntax."
},
"SearchParameters": {
@@ -266,4 +274,4 @@
"description": "Client Api Version."
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"parameters": {
"searchServiceName": "myservice",
"searchDnsSuffix": "search.windows.net",
"indexName": "myindex",
"api-version": "2016-09-01-Preview"
},
"responses": {
"200": {
"body": 427
}
"parameters": {
"searchServiceName": "myservice",
"searchDnsSuffix": "search.windows.net",
"indexName": "myindex",
"api-version": "2016-09-01-Preview"
},
"responses": {
"200": {
"body": 427
}
}
}
}
Original file line number Diff line number Diff line change
@@ -4,10 +4,10 @@
"title": "SearchIndexClient",
"description": "Client that can be used to query an Azure Search index and upload, merge, or delete documents.",
"version": "2016-09-01-Preview",
"x-ms-code-generation-settings": {
"x-ms-code-generation-settings": {
"useDateTimeOffset": true,
"syncMethods": "None"
}
"syncMethods": "None"
}
},
"x-ms-parameterized-host": {
"hostTemplate": "https://{searchServiceName}.{searchDnsSuffix}/indexes('{indexName}')",
@@ -38,7 +38,9 @@
],
"operationId": "DocumentsProxy_Count",
"x-ms-examples": {
"SearchIndexCountDocuments": { "$ref": "./examples/SearchIndexCountDocuments.json" }
"SearchIndexCountDocuments": {
"$ref": "./examples/SearchIndexCountDocuments.json"
}
},
"description": "Queries the number of documents in the Azure Search index.",
"externalDocs": {
@@ -100,7 +102,7 @@
"value": {
"x-ms-client-name": "Results",
"type": "array",
"readOnly": true,
"readOnly": true,
"items": {
"$ref": "#/definitions/IndexingResult"
},
@@ -117,7 +119,9 @@
"mergeOrUpload",
"delete"
],
"x-ms-enum": { "name": "IndexActionType" },
"x-ms-enum": {
"name": "IndexActionType"
},
"description": "Specifies the operation to perform on a document in an indexing batch."
},
"SearchMode": {
@@ -126,7 +130,9 @@
"any",
"all"
],
"x-ms-enum": { "name": "SearchMode" },
"x-ms-enum": {
"name": "SearchMode"
},
"description": "Specifies whether any or all of the search terms must be matched in order to count the document as a match."
},
"QueryType": {
@@ -135,7 +141,9 @@
"simple",
"full"
],
"x-ms-enum": { "name": "QueryType" },
"x-ms-enum": {
"name": "QueryType"
},
"description": "Specifies the syntax of the search query. The default is 'simple'. Use 'full' if your query uses the Lucene query syntax."
},
"SearchParametersPayload": {
@@ -305,7 +313,9 @@
"format": "uuid",
"description": "The tracking ID sent with the request to help with debugging.",
"x-ms-client-request-id": true,
"x-ms-parameter-grouping": { "name": "search-request-options" },
"x-ms-parameter-grouping": {
"name": "search-request-options"
},
"x-ms-parameter-location": "method"
},
"SearchServiceNameParameter": {
@@ -337,4 +347,4 @@
"x-ms-parameter-location": "client"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -4,10 +4,10 @@
"title": "SearchIndexClient",
"description": "Client that can be used to query an Azure Search index and upload, merge, or delete documents.",
"version": "2016-09-01",
"x-ms-code-generation-settings": {
"x-ms-code-generation-settings": {
"useDateTimeOffset": true,
"syncMethods": "None"
}
"syncMethods": "None"
}
},
"consumes": [
"application/json"
@@ -35,7 +35,9 @@
"format": "uuid",
"description": "The tracking ID sent with the request to help with debugging.",
"x-ms-client-request-id": true,
"x-ms-parameter-grouping": { "name": "search-request-options" }
"x-ms-parameter-grouping": {
"name": "search-request-options"
}
},
{
"$ref": "#/parameters/ApiVersionParameter"
@@ -88,7 +90,7 @@
"value": {
"x-ms-client-name": "Results",
"type": "array",
"readOnly": true,
"readOnly": true,
"items": {
"$ref": "#/definitions/IndexingResult"
},
@@ -105,7 +107,9 @@
"mergeOrUpload",
"delete"
],
"x-ms-enum": { "name": "IndexActionType" },
"x-ms-enum": {
"name": "IndexActionType"
},
"description": "Specifies the operation to perform on a document in an indexing batch."
},
"SearchMode": {
@@ -114,7 +118,9 @@
"any",
"all"
],
"x-ms-enum": { "name": "SearchMode" },
"x-ms-enum": {
"name": "SearchMode"
},
"description": "Specifies whether any or all of the search terms must be matched in order to count the document as a match."
},
"QueryType": {
@@ -123,7 +129,9 @@
"simple",
"full"
],
"x-ms-enum": { "name": "QueryType" },
"x-ms-enum": {
"name": "QueryType"
},
"description": "Specifies the syntax of the search query. The default is 'simple'. Use 'full' if your query uses the Lucene query syntax."
},
"SearchParametersPayload": {
@@ -286,4 +294,4 @@
"description": "Client Api Version."
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,36 +1,39 @@
{
"parameters": {
"searchServiceName": "myservice",
"searchDnsSuffix": "search.windows.net",
"indexName": "myindex",
"api-version": "2017-11-11-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"
}
]
"parameters": {
"searchServiceName": "myservice",
"searchDnsSuffix": "search.windows.net",
"indexName": "myindex",
"api-version": "2017-11-11-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"
}
]
}
}
}
}
Loading