openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 46.4 kB
JSON
{"openapi":"3.0.0","info":{"description":"Client that can be used to query an index and upload, merge, or delete documents.","title":"SearchIndexClient","version":"2019-05-06-Preview","x-apisguru-categories":["cloud"],"x-logo":{"url":"https://assets.onestore.ms/cdnfiles/onestorerolling-1606-01000/shell/v3/images/logo/microsoft.png"},"x-ms-code-generation-settings":{"syncMethods":"None"},"x-origin":[{"format":"swagger","url":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/search/data-plane/Microsoft.Azure.Search.Data/track1/preview/2019-05-06-preview/searchindex.json","version":"2.0"}],"x-preferred":true,"x-providerName":"azure.com","x-serviceName":"search-searchindex","x-tags":["Azure","Microsoft"]},"paths":{"/docs":{"get":{"description":"Searches for documents in the index.","externalDocs":{"url":"https://docs.microsoft.com/rest/api/searchservice/Search-Documents"},"operationId":"Documents_SearchGet","parameters":[{"description":"A full-text search query expression; Use \"*\" or omit this parameter to match all documents.","in":"query","name":"search","x-ms-client-name":"SearchText","schema":{"type":"string"},"examples":{"SearchIndexSearchDocumentsGet":{"value":"nice hotels"}}},{"description":"A value that specifies whether to fetch the total count of results. Default is false. Setting this value to true may have a performance impact. Note that the count returned is an approximation.","in":"query","name":"$count","x-ms-client-name":"IncludeTotalResultCount","x-ms-parameter-grouping":{"name":"SearchParameters"},"x-nullable":false,"schema":{"type":"boolean"},"examples":{"SearchIndexSearchDocumentsGet":{"value":true}}},{"description":"The list of facet expressions to apply to the search query. Each facet expression contains a field name, optionally followed by a comma-separated list of name:value pairs.","in":"query","name":"facet","x-ms-client-name":"Facets","x-ms-parameter-grouping":{"name":"SearchParameters"},"explode":true,"schema":{"type":"array","items":{"type":"string"}},"examples":{"SearchIndexSearchDocumentsGet":{"value":["category,count:10,sort:count"]}}},{"description":"The OData $filter expression to apply to the search query.","in":"query","name":"$filter","x-ms-parameter-grouping":{"name":"SearchParameters"},"schema":{"type":"string"},"examples":{"SearchIndexSearchDocumentsGet":{"value":"rating gt 10"}}},{"description":"The list of field names to use for hit highlights. Only searchable fields can be used for hit highlighting.","in":"query","name":"highlight","x-ms-client-name":"HighlightFields","x-ms-parameter-grouping":{"name":"SearchParameters"},"style":"form","explode":false,"schema":{"type":"array","items":{"type":"string"}},"examples":{"SearchIndexSearchDocumentsGet":{"value":["title"]}}},{"description":"A string tag that is appended to hit highlights. Must be set with highlightPreTag. Default is </em>.","in":"query","name":"highlightPostTag","x-ms-parameter-grouping":{"name":"SearchParameters"},"schema":{"type":"string"},"examples":{"SearchIndexSearchDocumentsGet":{"value":"</em>"}}},{"description":"A string tag that is prepended to hit highlights. Must be set with highlightPostTag. Default is <em>.","in":"query","name":"highlightPreTag","x-ms-parameter-grouping":{"name":"SearchParameters"},"schema":{"type":"string"},"examples":{"SearchIndexSearchDocumentsGet":{"value":"<em>"}}},{"description":"A number between 0 and 100 indicating the percentage of the index that must be covered by a search query in order for the query to be reported as a success. This parameter can be useful for ensuring search availability even for services with only one replica. The default is 100.","in":"query","name":"minimumCoverage","x-ms-parameter-grouping":{"name":"SearchParameters"},"schema":{"type":"number","format":"double"},"examples":{"SearchIndexSearchDocumentsGet":{"value":80}}},{"description":"The list of OData $orderby expressions by which to sort the results. Each expression can be either a field name or a call to either the geo.distance() or the search.score() functions. Each expression can be followed by asc to indicate ascending, and desc to indicate descending. The default is ascending order. Ties will be broken by the match scores of documents. If no OrderBy is specified, the default sort order is descending by document match score. There can be at most 32 $orderby clauses.","in":"query","name":"$orderby","x-ms-client-name":"OrderBy","x-ms-parameter-grouping":{"name":"SearchParameters"},"style":"form","explode":false,"schema":{"type":"array","items":{"type":"string"}},"examples":{"SearchIndexSearchDocumentsGet":{"value":["search.score() desc","rating desc"]}}},{"description":"A value that specifies the syntax of the search query. The default is 'simple'. Use 'full' if your query uses the Lucene query syntax.","in":"query","name":"queryType","x-ms-enum":{"modelAsString":false,"name":"QueryType"},"x-ms-parameter-grouping":{"name":"SearchParameters"},"x-nullable":false,"schema":{"type":"string","enum":["simple","full"]},"examples":{"SearchIndexSearchDocumentsGet":{"value":"simple"}}},{"description":"The list of parameter values to be used in scoring functions (for example, referencePointParameter) using the format name-values. For example, if the scoring profile defines a function with a parameter called 'mylocation' the parameter string would be \"mylocation--122.2,44.8\" (without the quotes).","in":"query","name":"scoringParameter","x-ms-client-name":"ScoringParameters","x-ms-parameter-grouping":{"name":"SearchParameters"},"explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"description":"The name of a scoring profile to evaluate match scores for matching documents in order to sort the results.","in":"query","name":"scoringProfile","x-ms-parameter-grouping":{"name":"SearchParameters"},"schema":{"type":"string"},"examples":{"SearchIndexSearchDocumentsGet":{"value":"sp"}}},{"description":"The list of field names to which to scope the full-text search. When using fielded search (fieldName:searchExpression) in a full Lucene query, the field names of each fielded search expression take precedence over any field names listed in this parameter.","in":"query","name":"searchFields","x-ms-parameter-grouping":{"name":"SearchParameters"},"style":"form","explode":false,"schema":{"type":"array","items":{"type":"string"}},"examples":{"SearchIndexSearchDocumentsGet":{"value":["title","description"]}}},{"description":"A value that specifies whether any or all of the search terms must be matched in order to count the document as a match.","in":"query","name":"searchMode","x-ms-enum":{"modelAsString":false,"name":"SearchMode"},"x-ms-parameter-grouping":{"name":"SearchParameters"},"x-nullable":false,"schema":{"type":"string","enum":["any","all"]},"examples":{"SearchIndexSearchDocumentsGet":{"value":"any"}}},{"description":"The list of fields to retrieve. If unspecified, all fields marked as retrievable in the schema are included.","in":"query","name":"$select","x-ms-parameter-grouping":{"name":"SearchParameters"},"style":"form","explode":false,"schema":{"type":"array","items":{"type":"string"}},"examples":{"SearchIndexSearchDocumentsGet":{"value":["docId","title","description"]}}},{"description":"The number of search results to skip. This value cannot be greater than 100,000. If you need to scan documents in sequence, but cannot use $skip due to this limitation, consider using $orderby on a totally-ordered key and $filter with a range query instead.","in":"query","name":"$skip","x-ms-parameter-grouping":{"name":"SearchParameters"},"schema":{"type":"integer","format":"int32"},"examples":{"SearchIndexSearchDocumentsGet":{"value":100}}},{"description":"The number of search results to retrieve. This can be used in conjunction with $skip to implement client-side paging of search results. If results are truncated due to server-side paging, the response will include a continuation token that can be used to issue another Search request for the next page of results.","in":"query","name":"$top","x-ms-parameter-grouping":{"name":"SearchParameters"},"schema":{"type":"integer","format":"int32"},"examples":{"SearchIndexSearchDocumentsGet":{"value":10}}},{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/ClientRequestIdParameter"}],"responses":{"200":{"description":"Response containing documents that match the search criteria.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentSearchResult"},"examples":{"SearchIndexSearchDocumentsGet":{"$ref":"#/components/examples/SearchIndexSearchDocumentsGet"}}}}}},"tags":["Documents"],"x-ms-request-id":"request-id"}},"/docs('{key}')":{"get":{"description":"Retrieves a document from the index.","externalDocs":{"url":"https://docs.microsoft.com/rest/api/searchservice/lookup-document"},"operationId":"Documents_Get","parameters":[{"description":"The key of the document to retrieve.","in":"path","name":"key","required":true,"schema":{"type":"string"},"examples":{"SearchIndexGetDocument":{"value":"1"}}},{"description":"List of field names to retrieve for the document; Any field not retrieved will be missing from the returned document.","in":"query","name":"$select","x-ms-client-name":"SelectedFields","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string"}},"examples":{"SearchIndexGetDocument":{"value":["docId","title","description"]}}},{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/ClientRequestIdParameter"}],"responses":{"200":{"description":"Response containing the requested document.","content":{"application/json":{"schema":{"type":"object"},"examples":{"SearchIndexGetDocument":{"$ref":"#/components/examples/SearchIndexGetDocument"}}}}}},"tags":["Documents"]}},"/docs/$count":{"get":{"description":"Queries the number of documents in the index.","externalDocs":{"url":"https://docs.microsoft.com/rest/api/searchservice/Count-Documents"},"operationId":"Documents_Count","parameters":[{"$ref":"#/components/parameters/ClientRequestIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"format":"int64","type":"integer"},"examples":{"SearchIndexCountDocuments":{"$ref":"#/components/examples/SearchIndexCountDocuments"}}}}}},"tags":["Documents"],"x-ms-request-id":"request-id"}},"/docs/search.autocomplete":{"get":{"description":"Autocompletes incomplete query terms based on input text and matching terms in the index.","externalDocs":{"url":"https://docs.microsoft.com/rest/api/searchservice/autocomplete"},"operationId":"Documents_AutocompleteGet","parameters":[{"$ref":"#/components/parameters/ClientRequestIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"},{"description":"The incomplete term which should be auto-completed.","in":"query","name":"search","required":true,"x-ms-client-name":"SearchText","schema":{"type":"string"},"examples":{"SearchIndexAutocompleteDocumentsGet":{"value":"washington medic"}}},{"description":"The name of the suggester as specified in the suggesters collection that's part of the index definition.","in":"query","name":"suggesterName","required":true,"schema":{"type":"string"},"examples":{"SearchIndexAutocompleteDocumentsGet":{"value":"sg"}}},{"description":"Specifies the mode for Autocomplete. The default is 'oneTerm'. Use 'twoTerms' to get shingles and 'oneTermWithContext' to use the current context while producing auto-completed terms.","in":"query","name":"autocompleteMode","x-ms-enum":{"modelAsString":false,"name":"AutocompleteMode"},"x-ms-parameter-grouping":{"name":"AutocompleteParameters"},"x-nullable":false,"schema":{"type":"string","enum":["oneTerm","twoTerms","oneTermWithContext"]},"examples":{"SearchIndexAutocompleteDocumentsGet":{"value":"oneTerm"}}},{"description":"An OData expression that filters the documents used to produce completed terms for the Autocomplete result.","in":"query","name":"$filter","x-ms-parameter-grouping":{"name":"AutocompleteParameters"},"schema":{"type":"string"}},{"description":"A value indicating whether to use fuzzy matching for the autocomplete query. Default is false. When set to true, the query will find terms even if there's a substituted or missing character in the search text. While this provides a better experience in some scenarios, it comes at a performance cost as fuzzy autocomplete queries are slower and consume more resources.","in":"query","name":"fuzzy","x-ms-client-name":"UseFuzzyMatching","x-ms-parameter-grouping":{"name":"AutocompleteParameters"},"schema":{"type":"boolean"},"examples":{"SearchIndexAutocompleteDocumentsGet":{"value":false}}},{"description":"A string tag that is appended to hit highlights. Must be set with highlightPreTag. If omitted, hit highlighting is disabled.","in":"query","name":"highlightPostTag","x-ms-parameter-grouping":{"name":"AutocompleteParameters"},"schema":{"type":"string"},"examples":{"SearchIndexAutocompleteDocumentsGet":{"value":"</em>"}}},{"description":"A string tag that is prepended to hit highlights. Must be set with highlightPostTag. If omitted, hit highlighting is disabled.","in":"query","name":"highlightPreTag","x-ms-parameter-grouping":{"name":"AutocompleteParameters"},"schema":{"type":"string"},"examples":{"SearchIndexAutocompleteDocumentsGet":{"value":"<em>"}}},{"description":"A number between 0 and 100 indicating the percentage of the index that must be covered by an autocomplete query in order for the query to be reported as a success. This parameter can be useful for ensuring search availability even for services with only one replica. The default is 80.","in":"query","name":"minimumCoverage","x-ms-parameter-grouping":{"name":"AutocompleteParameters"},"schema":{"type":"number","format":"double"},"examples":{"SearchIndexAutocompleteDocumentsGet":{"value":80}}},{"description":"The list of field names to consider when querying for auto-completed terms. Target fields must be included in the specified suggester.","in":"query","name":"searchFields","x-ms-parameter-grouping":{"name":"AutocompleteParameters"},"style":"form","explode":false,"schema":{"type":"array","items":{"type":"string"}},"examples":{"SearchIndexAutocompleteDocumentsGet":{"value":["title","description"]}}},{"description":"The number of auto-completed terms to retrieve. This must be a value between 1 and 100. The default is 5.","in":"query","name":"$top","x-ms-parameter-grouping":{"name":"AutocompleteParameters"},"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutocompleteResult"},"examples":{"SearchIndexAutocompleteDocumentsGet":{"$ref":"#/components/examples/SearchIndexAutocompleteDocumentsGet"}}}}}},"tags":["Documents"],"x-ms-request-id":"request-id"}},"/docs/search.index":{"post":{"description":"Sends a batch of document write actions to the index.","externalDocs":{"url":"https://docs.microsoft.com/rest/api/searchservice/addupdate-or-delete-documents"},"operationId":"Documents_Index","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/ClientRequestIdParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexBatch"}}},"description":"The batch of index actions.","required":true},"responses":{"200":{"description":"Response containing the status of operations for all actions in the batch.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentIndexResult"},"examples":{"SearchIndexIndexDocuments":{"$ref":"#/components/examples/SearchIndexIndexDocuments"}}}}},"207":{"description":"Response containing the status of operations for all actions in the batch.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentIndexResult"},"examples":{"SearchIndexIndexDocuments":{"$ref":"#/components/examples/SearchIndexIndexDocuments"}}}}}},"tags":["Documents"],"x-ms-request-id":"request-id"}},"/docs/search.post.autocomplete":{"post":{"description":"Autocompletes incomplete query terms based on input text and matching terms in the index.","externalDocs":{"url":"https://docs.microsoft.com/rest/api/searchservice/autocomplete"},"operationId":"Documents_AutocompletePost","parameters":[{"$ref":"#/components/parameters/ClientRequestIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutocompleteRequest"}}},"description":"The definition of the Autocomplete request.","required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutocompleteResult"},"examples":{"SearchIndexAutocompleteDocumentsPost":{"$ref":"#/components/examples/SearchIndexAutocompleteDocumentsPost"}}}}}},"tags":["Documents"],"x-ms-request-id":"request-id"}},"/docs/search.post.search":{"post":{"description":"Searches for documents in the index.","externalDocs":{"url":"https://docs.microsoft.com/rest/api/searchservice/Search-Documents"},"operationId":"Documents_SearchPost","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/ClientRequestIdParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}},"description":"The definition of the Search request.","required":true},"responses":{"200":{"description":"Response containing documents that match the search criteria.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentSearchResult"},"examples":{"SearchIndexSearchDocumentsPost":{"$ref":"#/components/examples/SearchIndexSearchDocumentsPost"}}}}}},"tags":["Documents"],"x-ms-request-id":"request-id"}},"/docs/search.post.suggest":{"post":{"description":"Suggests documents in the index that match the given partial query text.","externalDocs":{"url":"https://docs.microsoft.com/rest/api/searchservice/suggestions"},"operationId":"Documents_SuggestPost","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/ClientRequestIdParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestRequest"}}},"description":"The Suggest request.","required":true},"responses":{"200":{"description":"Response containing suggested documents that match the partial input.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentSuggestResult"},"examples":{"SearchIndexSuggestDocumentsPost":{"$ref":"#/components/examples/SearchIndexSuggestDocumentsPost"}}}}}},"tags":["Documents"],"x-ms-request-id":"request-id"}},"/docs/search.suggest":{"get":{"description":"Suggests documents in the index that match the given partial query text.","externalDocs":{"url":"https://docs.microsoft.com/rest/api/searchservice/suggestions"},"operationId":"Documents_SuggestGet","parameters":[{"description":"The search text to use to suggest documents. Must be at least 1 character, and no more than 100 characters.","in":"query","name":"search","required":true,"x-ms-client-name":"SearchText","schema":{"type":"string"},"examples":{"SearchIndexSuggestDocumentsGet":{"value":"hote"}}},{"description":"The name of the suggester as specified in the suggesters collection that's part of the index definition.","in":"query","name":"suggesterName","required":true,"schema":{"type":"string"},"examples":{"SearchIndexSuggestDocumentsGet":{"value":"sg"}}},{"description":"An OData expression that filters the documents considered for suggestions.","in":"query","name":"$filter","x-ms-parameter-grouping":{"name":"SuggestParameters"},"schema":{"type":"string"},"examples":{"SearchIndexSuggestDocumentsGet":{"value":"rating gt 10"}}},{"description":"A value indicating whether to use fuzzy matching for the suggestions query. Default is false. When set to true, the query will find terms even if there's a substituted or missing character in the search text. While this provides a better experience in some scenarios, it comes at a performance cost as fuzzy suggestions queries are slower and consume more resources.","in":"query","name":"fuzzy","x-ms-client-name":"UseFuzzyMatching","x-ms-parameter-grouping":{"name":"SuggestParameters"},"x-nullable":false,"schema":{"type":"boolean"},"examples":{"SearchIndexSuggestDocumentsGet":{"value":false}}},{"description":"A string tag that is appended to hit highlights. Must be set with highlightPreTag. If omitted, hit highlighting of suggestions is disabled.","in":"query","name":"highlightPostTag","x-ms-parameter-grouping":{"name":"SuggestParameters"},"schema":{"type":"string"},"examples":{"SearchIndexSuggestDocumentsGet":{"value":"</em>"}}},{"description":"A string tag that is prepended to hit highlights. Must be set with highlightPostTag. If omitted, hit highlighting of suggestions is disabled.","in":"query","name":"highlightPreTag","x-ms-parameter-grouping":{"name":"SuggestParameters"},"schema":{"type":"string"},"examples":{"SearchIndexSuggestDocumentsGet":{"value":"<em>"}}},{"description":"A number between 0 and 100 indicating the percentage of the index that must be covered by a suggestions query in order for the query to be reported as a success. This parameter can be useful for ensuring search availability even for services with only one replica. The default is 80.","in":"query","name":"minimumCoverage","x-ms-parameter-grouping":{"name":"SuggestParameters"},"schema":{"type":"number","format":"double"},"examples":{"SearchIndexSuggestDocumentsGet":{"value":80}}},{"description":"The list of OData $orderby expressions by which to sort the results. Each expression can be either a field name or a call to either the geo.distance() or the search.score() functions. Each expression can be followed by asc to indicate ascending, or desc to indicate descending. The default is ascending order. Ties will be broken by the match scores of documents. If no $orderby is specified, the default sort order is descending by document match score. There can be at most 32 $orderby clauses.","in":"query","name":"$orderby","x-ms-client-name":"OrderBy","x-ms-parameter-grouping":{"name":"SuggestParameters"},"style":"form","explode":false,"schema":{"type":"array","items":{"type":"string"}},"examples":{"SearchIndexSuggestDocumentsGet":{"value":["search.score() desc","rating desc"]}}},{"description":"The list of field names to search for the specified search text. Target fields must be included in the specified suggester.","in":"query","name":"searchFields","x-ms-parameter-grouping":{"name":"SuggestParameters"},"style":"form","explode":false,"schema":{"type":"array","items":{"type":"string"}},"examples":{"SearchIndexSuggestDocumentsGet":{"value":["title"]}}},{"description":"The list of fields to retrieve. If unspecified, only the key field will be included in the results.","in":"query","name":"$select","x-ms-parameter-grouping":{"name":"SuggestParameters"},"style":"form","explode":false,"schema":{"type":"array","items":{"type":"string"}},"examples":{"SearchIndexSuggestDocumentsGet":{"value":["docId","title","description"]}}},{"description":"The number of suggestions to retrieve. The value must be a number between 1 and 100. The default is 5.","in":"query","name":"$top","x-ms-parameter-grouping":{"name":"SuggestParameters"},"schema":{"type":"integer","format":"int32"},"examples":{"SearchIndexSuggestDocumentsGet":{"value":10}}},{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/ClientRequestIdParameter"}],"responses":{"200":{"description":"Response containing suggested documents that match the partial input.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentSuggestResult"},"examples":{"SearchIndexSuggestDocumentsGet":{"$ref":"#/components/examples/SearchIndexSuggestDocumentsGet"}}}}}},"tags":["Documents"],"x-ms-request-id":"request-id"}}},"servers":[{"url":"https://azure.local"},{"url":"https://{searchServiceName}.{searchDnsSuffix}/indexes('{indexName}')","variables":{"searchServiceName":{"description":"The name of the search service.","x-ms-parameter-location":"client","x-ms-skip-url-encoding":true,"default":"none"},"searchDnsSuffix":{"default":"search.windows.net","description":"The DNS suffix of the search service. The default is search.windows.net.","x-ms-parameter-location":"client","x-ms-skip-url-encoding":true},"indexName":{"description":"The name of the index.","x-ms-parameter-location":"client","x-ms-skip-url-encoding":false,"default":"none"}}}],"components":{"examples":{"SearchIndexSearchDocumentsGet":{"value":{"@odata.count":25,"@search.coverage":80,"@search.facets":{"category":[{"count":1,"value":"Economy"},{"count":1,"value":"Luxury"}]},"value":[{"@search.highlights":{"title":["<em>Nice</em> <em>Hotel</em>"]},"@search.score":1.5,"description":"Cheapest hotel in town","docId":"1","title":"Nice Hotel"},{"@search.highlights":{"title":["Fancy <em>Hotel</em>"]},"@search.score":0.7,"description":"Best hotel in town","docId":"2","title":"Fancy Hotel"}]}},"SearchIndexGetDocument":{"value":{"description":"Cheapest hotel in town","docId":"1","title":"Nice Hotel"}},"SearchIndexCountDocuments":{"value":427},"SearchIndexAutocompleteDocumentsGet":{"value":[{"queryPlusText":"washington medicaid","text":"medicaid"},{"queryPlusText":"washington medicare","text":"medicare"},{"queryPlusText":"washington medicine","text":"medicine"}]},"SearchIndexIndexDocuments":{"value":{"value":[{"key":"1","status":true,"statusCode":200},{"errorMessage":"Document not found.","key":"2","status":false,"statusCode":404},{"key":"3","status":true,"statusCode":200},{"key":"4","status":true,"statusCode":200}]}},"SearchIndexAutocompleteDocumentsPost":{"value":[{"queryPlusText":"washington medicaid","text":"medicaid"},{"queryPlusText":"washington medicare","text":"medicare"},{"queryPlusText":"washington medicine","text":"medicine"}]},"SearchIndexSearchDocumentsPost":{"value":{"@odata.count":25,"@odata.nextLink":"https://myservice.search.windows.net/indexes('myindex')/docs/search.post.search?api-version=2019-05-06-Preview","@search.facets":{"category":[{"count":1,"value":"Economy"},{"count":1,"value":"Luxury"}]},"@search.nextPageParameters":{"count":true,"facets":["category,count:10,sort:count"],"filter":"rating gt 4.0","highlight":"title","highlightPostTag":"</em>","highlightPreTag":"<em>","orderby":"search.score() desc,rating desc","queryType":"simple","scoringParameters":["currentLocation--122.123,44.77233"],"scoringProfile":"sp","search":"nice hotels","searchFields":"title,description","searchMode":"any","select":"docId,title,description","skip":2,"top":8},"value":[{"@search.highlights":{"title":["<em>Nice</em> <em>Hotel</em>"]},"@search.score":1.5,"description":"Cheapest hotel in town","docId":"1","title":"Nice Hotel"},{"@search.highlights":{"title":["Fancy <em>Hotel</em>"]},"@search.score":0.7,"description":"Best hotel in town","docId":"2","title":"Fancy Hotel"}]}},"SearchIndexSuggestDocumentsPost":{"value":{"value":[{"@search.text":"Nice <em>Hotel</em>","description":"Cheapest hotel in town","docId":"1","title":"Nice Hotel"},{"@search.text":"Fancy <em>Hotel</em>","description":"Best hotel in town","docId":"2","title":"Fancy Hotel"}]}},"SearchIndexSuggestDocumentsGet":{"value":{"value":[{"@search.text":"Nice <em>Hotel</em>","description":"Cheapest hotel in town","docId":"1","title":"Nice Hotel"},{"@search.text":"Fancy <em>Hotel</em>","description":"Best hotel in town","docId":"2","title":"Fancy Hotel"}]}}},"parameters":{"ApiVersionParameter":{"description":"Client Api Version.","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"SearchIndexSearchDocumentsGet":{"value":"2019-05-06-Preview"},"SearchIndexGetDocument":{"value":"2019-05-06-Preview"},"SearchIndexCountDocuments":{"value":"2019-05-06-Preview"},"SearchIndexAutocompleteDocumentsGet":{"value":"2019-05-06-Preview"},"SearchIndexIndexDocuments":{"value":"2019-05-06-Preview"},"SearchIndexAutocompleteDocumentsPost":{"value":"2019-05-06-Preview"},"SearchIndexSearchDocumentsPost":{"value":"2019-05-06-Preview"},"SearchIndexSuggestDocumentsPost":{"value":"2019-05-06-Preview"},"SearchIndexSuggestDocumentsGet":{"value":"2019-05-06-Preview"}}},"ClientRequestIdParameter":{"description":"The tracking ID sent with the request to help with debugging.","in":"header","name":"client-request-id","required":false,"x-ms-client-request-id":true,"x-ms-parameter-grouping":{"name":"search-request-options"},"x-ms-parameter-location":"method","schema":{"type":"string","format":"uuid"}},"IndexNameParameter":{"description":"The name of the index.","in":"path","name":"indexName","required":true,"x-ms-parameter-location":"client","x-ms-skip-url-encoding":false,"schema":{"type":"string"}},"SearchDnsSuffixParameter":{"description":"The DNS suffix of the search service. The default is search.windows.net.","in":"path","name":"searchDnsSuffix","required":true,"x-ms-parameter-location":"client","x-ms-skip-url-encoding":true,"schema":{"type":"string","default":"search.windows.net"}},"SearchServiceNameParameter":{"description":"The name of the search service.","in":"path","name":"searchServiceName","required":true,"x-ms-parameter-location":"client","x-ms-skip-url-encoding":true,"schema":{"type":"string"}}},"schemas":{"AutocompleteItem":{"description":"The result of Autocomplete requests.","properties":{"queryPlusText":{"description":"The query along with the completed term.","readOnly":true,"type":"string"},"text":{"description":"The completed term.","readOnly":true,"type":"string"}}},"AutocompleteMode":{"description":"Specifies the mode for Autocomplete. The default is 'oneTerm'. Use 'twoTerms' to get shingles and 'oneTermWithContext' to use the current context in producing autocomplete terms.","enum":["oneTerm","twoTerms","oneTermWithContext"],"type":"string","x-ms-enum":{"modelAsString":false,"name":"AutocompleteMode"}},"AutocompleteRequest":{"description":"Parameters for fuzzy matching, and other autocomplete query behaviors.","properties":{"autocompleteMode":{"$ref":"#/components/schemas/AutocompleteMode"},"filter":{"description":"An OData expression that filters the documents used to produce completed terms for the Autocomplete result.","externalDocs":{"url":"https://docs.microsoft.com/rest/api/searchservice/OData-Expression-Syntax-for-Azure-Search"},"type":"string"},"fuzzy":{"description":"A value indicating whether to use fuzzy matching for the autocomplete query. Default is false. When set to true, the query will autocomplete terms even if there's a substituted or missing character in the search text. While this provides a better experience in some scenarios, it comes at a performance cost as fuzzy autocomplete queries are slower and consume more resources.","type":"boolean","x-ms-client-name":"UseFuzzyMatching"},"highlightPostTag":{"description":"A string tag that is appended to hit highlights. Must be set with highlightPreTag. If omitted, hit highlighting is disabled.","type":"string"},"highlightPreTag":{"description":"A string tag that is prepended to hit highlights. Must be set with highlightPostTag. If omitted, hit highlighting is disabled.","type":"string"},"minimumCoverage":{"description":"A number between 0 and 100 indicating the percentage of the index that must be covered by an autocomplete query in order for the query to be reported as a success. This parameter can be useful for ensuring search availability even for services with only one replica. The default is 80.","format":"double","type":"number"},"search":{"description":"The search text on which to base autocomplete results.","type":"string","x-ms-client-name":"SearchText"},"searchFields":{"description":"The comma-separated list of field names to consider when querying for auto-completed terms. Target fields must be included in the specified suggester.","type":"string"},"suggesterName":{"description":"The name of the suggester as specified in the suggesters collection that's part of the index definition.","type":"string"},"top":{"description":"The number of auto-completed terms to retrieve. This must be a value between 1 and 100. The default is 5.","format":"int32","type":"integer"}}},"AutocompleteResult":{"description":"The result of Autocomplete query.","properties":{"value":{"description":"The list of returned Autocompleted items.","items":{"$ref":"#/components/schemas/AutocompleteItem"},"readOnly":true,"type":"array","x-ms-client-name":"Results"}}},"DocumentIndexResult":{"description":"Response containing the status of operations for all documents in the indexing request.","properties":{"value":{"description":"The list of status information for each document in the indexing request.","items":{"$ref":"#/components/schemas/IndexingResult"},"readOnly":true,"type":"array","x-ms-client-name":"Results"}}},"DocumentSearchResult":{"description":"Response containing search results from an index.","properties":{"@odata.count":{"description":"The total count of results found by the search operation, or null if the count was not requested. If present, the count may be greater than the number of results in this response. This can happen if you use the $top or $skip parameters, or if Azure Cognitive Search can't return all the requested documents in a single Search response.","format":"int64","readOnly":true,"type":"integer","x-ms-client-name":"Count"},"@odata.nextLink":{"description":"Continuation URL returned when Azure Cognitive Search can't return all the requested results in a single Search response. You can use this URL to formulate another GET or POST Search request to get the next part of the search response. Make sure to use the same verb (GET or POST) as the request that produced this response.","readOnly":true,"type":"string","x-ms-client-name":"NextLink"},"@search.coverage":{"description":"A value indicating the percentage of the index that was included in the query, or null if minimumCoverage was not specified in the request.","format":"double","readOnly":true,"type":"number","x-ms-client-name":"Coverage"},"@search.facets":{"additionalProperties":{"items":{"$ref":"#/components/schemas/FacetResult"},"type":"array"},"description":"The facet query results for the search operation, organized as a collection of buckets for each faceted field; null if the query did not include any facet expressions.","readOnly":true,"type":"object","x-ms-client-name":"Facets"},"@search.nextPageParameters":{"$ref":"#/components/schemas/SearchRequest"},"value":{"description":"The sequence of results returned by the query.","items":{"$ref":"#/components/schemas/SearchResult"},"readOnly":true,"type":"array","x-ms-client-name":"Results"}}},"DocumentSuggestResult":{"description":"Response containing suggestion query results from an index.","properties":{"@search.coverage":{"description":"A value indicating the percentage of the index that was included in the query, or null if minimumCoverage was not set in the request.","format":"double","readOnly":true,"type":"number","x-ms-client-name":"Coverage"},"value":{"description":"The sequence of results returned by the query.","items":{"$ref":"#/components/schemas/SuggestResult"},"readOnly":true,"type":"array","x-ms-client-name":"Results"}}},"FacetResult":{"additionalProperties":true,"description":"A single bucket of a facet query result. Reports the number of documents with a field value falling within a particular range or having a particular value or interval.","properties":{"count":{"description":"The approximate count of documents falling within the bucket described by this facet.","format":"int64","readOnly":true,"type":"integer"}}},"IndexAction":{"additionalProperties":true,"description":"Represents an index action that operates on a document.","properties":{"@search.action":{"description":"The operation to perform on a document in an indexing batch.","enum":["upload","merge","mergeOrUpload","delete"],"type":"string","x-ms-client-name":"ActionType","x-ms-enum":{"name":"IndexActionType"},"nullable":false}}},"IndexBatch":{"description":"Contains a batch of document write actions to send to the index.","properties":{"value":{"description":"The actions in the batch.","items":{"$ref":"#/components/schemas/IndexAction"},"type":"array","x-ms-client-name":"Actions"}},"required":["value"]},"IndexingResult":{"description":"Status of an indexing operation for a single document.","properties":{"errorMessage":{"description":"The error message explaining why the indexing operation failed for the document identified by the key; null if indexing succeeded.","readOnly":true,"type":"string"},"key":{"description":"The key of a document that was in the indexing request.","readOnly":true,"type":"string"},"status":{"description":"A value indicating whether the indexing operation succeeded for the document identified by the key.","readOnly":true,"type":"boolean","x-ms-client-name":"Succeeded","nullable":false},"statusCode":{"description":"The status code of the indexing operation. Possible values include: 200 for a successful update or delete, 201 for successful document creation, 400 for a malformed input document, 404 for document not found, 409 for a version conflict, 422 when the index is temporarily unavailable, or 503 for when the service is too busy.","format":"int32","readOnly":true,"type":"integer","nullable":false}}},"QueryType":{"description":"Specifies the syntax of the search query. The default is 'simple'. Use 'full' if your query uses the Lucene query syntax.","enum":["simple","full"],"type":"string","x-ms-enum":{"modelAsString":false,"name":"QueryType"}},"SearchMode":{"description":"Specifies whether any or all of the search terms must be matched in order to count the document as a match.","enum":["any","all"],"type":"string","x-ms-enum":{"modelAsString":false,"name":"SearchMode"}},"SearchRequest":{"description":"Parameters for filtering, sorting, faceting, paging, and other search query behaviors.","properties":{"count":{"description":"A value that specifies whether to fetch the total count of results. Default is false. Setting this value to true may have a performance impact. Note that the count returned is an approximation.","type":"boolean","x-ms-client-name":"IncludeTotalResultCount"},"facets":{"description":"The list of facet expressions to apply to the search query. Each facet expression contains a field name, optionally followed by a comma-separated list of name:value pairs.","externalDocs":{"url":"https://docs.microsoft.com/rest/api/searchservice/Search-Documents"},"items":{"type":"string"},"type":"array"},"filter":{"description":"The OData $filter expression to apply to the search query.","externalDocs":{"url":"https://docs.microsoft.com/rest/api/searchservice/OData-Expression-Syntax-for-Azure-Search"},"type":"string"},"highlight":{"description":"The comma-separated list of field names to use for hit highlights. Only searchable fields can be used for hit highlighting.","type":"string","x-ms-client-name":"HighlightFields"},"highlightPostTag":{"description":"A string tag that is appended to hit highlights. Must be set with highlightPreTag. Default is </em>.","type":"string"},"highlightPreTag":{"description":"A string tag that is prepended to hit highlights. Must be set with highlightPostTag. Default is <em>.","type":"string"},"minimumCoverage":{"description":"A number between 0 and 100 indicating the percentage of the index that must be covered by a search query in order for the query to be reported as a success. This parameter can be useful for ensuring search availability even for services with only one replica. The default is 100.","format":"double","type":"number"},"orderby":{"description":"The comma-separated list of OData $orderby expressions by which to sort the results. Each expression can be either a field name or a call to either the geo.distance() or the search.score() functions. Each expression can be followed by asc to indicate ascending, or desc to indicate descending. The default is ascending order. Ties will be broken by the match scores of documents. If no $orderby is specified, the default sort order is descending by document match score. There can be at most 32 $orderby clauses.","type":"string","x-ms-client-name":"OrderBy"},"queryType":{"$ref":"#/components/schemas/QueryType"},"scoringParameters":{"description":"The list of parameter values to be used in scoring functions (for example, referencePointParameter) using the format name-values. For example, if the scoring profile defines a function with a parameter called 'mylocation' the parameter string would be \"mylocation--122.2,44.8\" (without the quotes).","items":{"type":"string"},"type":"array"},"scoringProfile":{"description":"The name of a scoring profile to evaluate match scores for matching documents in order to sort the results.","type":"string"},"search":{"description":"A full-text search query expression; Use \"*\" or omit this parameter to match all documents.","type":"string","x-ms-client-name":"SearchText"},"searchFields":{"description":"The comma-separated list of field names to which to scope the full-text search. When using fielded search (fieldName:searchExpression) in a full Lucene query, the field names of each fielded search expression take precedence over any field names listed in this parameter.","type":"string"},"searchMode":{"$ref":"#/components/schemas/SearchMode"},"select":{"description":"The comma-separated list of fields to retrieve. If unspecified, all fields marked as retrievable in the schema are included.","type":"string"},"skip":{"description":"The number of search results to skip. This value cannot be greater than 100,000. If you need to scan documents in sequence, but cannot use skip due to this limitation, consider using orderby on a totally-ordered key and filter with a range query instead.","format":"int32","type":"integer"},"top":{"description":"The number of search results to retrieve. This can be used in conjunction with $skip to implement client-side paging of search results. If results are truncated due to server-side paging, the response will include a continuation token that can be used to issue another Search request for the next page of results.","format":"int32","type":"integer"}}},"SearchResult":{"additionalProperties":true,"description":"Contains a document found by a search query, plus associated metadata.","properties":{"@search.highlights":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"description":"Text fragments from the document that indicate the matching search terms, organized by each applicable field; null if hit highlighting was not enabled for the query.","readOnly":true,"type":"object","x-ms-client-name":"Highlights"},"@search.score":{"description":"The relevance score of the document compared to other documents returned by the query.","format":"double","readOnly":true,"type":"number","x-ms-client-name":"Score","nullable":false}}},"SuggestRequest":{"description":"Parameters for filtering, sorting, fuzzy matching, and other suggestions query behaviors.","properties":{"filter":{"description":"An OData expression that filters the documents considered for suggestions.","externalDocs":{"url":"https://docs.microsoft.com/rest/api/searchservice/OData-Expression-Syntax-for-Azure-Search"},"type":"string"},"fuzzy":{"description":"A value indicating whether to use fuzzy matching for the suggestion query. Default is false. When set to true, the query will find suggestions even if there's a substituted or missing character in the search text. While this provides a better experience in some scenarios, it comes at a performance cost as fuzzy suggestion searches are slower and consume more resources.","type":"boolean","x-ms-client-name":"UseFuzzyMatching"},"highlightPostTag":{"description":"A string tag that is appended to hit highlights. Must be set with highlightPreTag. If omitted, hit highlighting of suggestions is disabled.","type":"string"},"highlightPreTag":{"description":"A string tag that is prepended to hit highlights. Must be set with highlightPostTag. If omitted, hit highlighting of suggestions is disabled.","type":"string"},"minimumCoverage":{"description":"A number between 0 and 100 indicating the percentage of the index that must be covered by a suggestion query in order for the query to be reported as a success. This parameter can be useful for ensuring search availability even for services with only one replica. The default is 80.","format":"double","type":"number"},"orderby":{"description":"The comma-separated list of OData $orderby expressions by which to sort the results. Each expression can be either a field name or a call to either the geo.distance() or the search.score() functions. Each expression can be followed by asc to indicate ascending, or desc to indicate descending. The default is ascending order. Ties will be broken by the match scores of documents. If no $orderby is specified, the default sort order is descending by document match score. There can be at most 32 $orderby clauses.","type":"string","x-ms-client-name":"OrderBy"},"search":{"description":"The search text to use to suggest documents. Must be at least 1 character, and no more than 100 characters.","type":"string","x-ms-client-name":"SearchText"},"searchFields":{"description":"The comma-separated list of field names to search for the specified search text. Target fields must be included in the specified suggester.","type":"string"},"select":{"description":"The comma-separated list of fields to retrieve. If unspecified, only the key field will be included in the results.","type":"string"},"suggesterName":{"description":"The name of the suggester as specified in the suggesters collection that's part of the index definition.","type":"string"},"top":{"description":"The number of suggestions to retrieve. This must be a value between 1 and 100. The default is 5.","format":"int32","type":"integer"}}},"SuggestResult":{"additionalProperties":true,"description":"A result containing a document found by a suggestion query, plus associated metadata.","properties":{"@search.text":{"description":"The text of the suggestion result.","readOnly":true,"type":"string","x-ms-client-name":"Text"}}}}}}