APIHub
Back to Explore

SearchIndexClient

Client that can be used to query an index and upload, merge, or delete documents.

Cloud
none
HTTPS
CORS: Unknown
Visit official documentation

Latency

3012ms p95

Uptime

0.0% 30d

Playground

Verified

live

Endpoints

REST · JSON
GET

/docs

Searches for documents in the index.

  • search (query) — A full-text search query expression; Use "*" or omit this parameter to match all documents.
  • $count (query, limit) — 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.
  • facet (query) — 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.
  • $filter (query) — The OData $filter expression to apply to the search query.
  • highlight (query) — The list of field names to use for hit highlights. Only searchable fields can be used for hit highlighting.
  • highlightPostTag (query) — A string tag that is appended to hit highlights. Must be set with highlightPreTag. Default is </em>.
  • highlightPreTag (query) — A string tag that is prepended to hit highlights. Must be set with highlightPostTag. Default is <em>.
  • minimumCoverage (query) — 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.
  • $orderby (query) — 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.
  • queryType (query) — A value that specifies the syntax of the search query. The default is 'simple'. Use 'full' if your query uses the Lucene query syntax.
  • scoringParameter (query) — 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).
  • scoringProfile (query) — The name of a scoring profile to evaluate match scores for matching documents in order to sort the results.
  • searchFields (query) — 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.
  • searchMode (query) — A value that specifies whether any or all of the search terms must be matched in order to count the document as a match.
  • $select (query) — The list of fields to retrieve. If unspecified, all fields marked as retrievable in the schema are included.
  • $skip (query, offset) — 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.
  • $top (query, limit) — 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.
  • api-version (query, required) — Client Api Version.
  • client-request-id (header) — The tracking ID sent with the request to help with debugging.
GET

/docs('{key}')

Retrieves a document from the index.

  • key (path, required) — The key of the document to retrieve.
  • $select (query) — List of field names to retrieve for the document; Any field not retrieved will be missing from the returned document.
  • api-version (query, required) — Client Api Version.
  • client-request-id (header) — The tracking ID sent with the request to help with debugging.
GET

/docs/$count

Queries the number of documents in the index.

  • client-request-id (header) — The tracking ID sent with the request to help with debugging.
  • api-version (query, required) — Client Api Version.
GET

/docs/search.autocomplete

Autocompletes incomplete query terms based on input text and matching terms in the index.

  • client-request-id (header) — The tracking ID sent with the request to help with debugging.
  • api-version (query, required) — Client Api Version.
  • search (query, required) — The incomplete term which should be auto-completed.
  • suggesterName (query, required) — The name of the suggester as specified in the suggesters collection that's part of the index definition.
  • autocompleteMode (query) — 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.
  • $filter (query) — An OData expression that filters the documents used to produce completed terms for the Autocomplete result.
  • fuzzy (query) — 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.
  • highlightPostTag (query) — A string tag that is appended to hit highlights. Must be set with highlightPreTag. If omitted, hit highlighting is disabled.
  • highlightPreTag (query) — A string tag that is prepended to hit highlights. Must be set with highlightPostTag. If omitted, hit highlighting is disabled.
  • minimumCoverage (query) — 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.
  • searchFields (query) — The list of field names to consider when querying for auto-completed terms. Target fields must be included in the specified suggester.
  • $top (query, limit) — The number of auto-completed terms to retrieve. This must be a value between 1 and 100. The default is 5.
POST

/docs/search.index

Sends a batch of document write actions to the index.

  • api-version (query, required) — Client Api Version.
  • client-request-id (header) — The tracking ID sent with the request to help with debugging.
POST

/docs/search.post.autocomplete

Autocompletes incomplete query terms based on input text and matching terms in the index.

  • client-request-id (header) — The tracking ID sent with the request to help with debugging.
  • api-version (query, required) — Client Api Version.
POST

/docs/search.post.search

Searches for documents in the index.

  • api-version (query, required) — Client Api Version.
  • client-request-id (header) — The tracking ID sent with the request to help with debugging.
POST

/docs/search.post.suggest

Suggests documents in the index that match the given partial query text.

  • api-version (query, required) — Client Api Version.
  • client-request-id (header) — The tracking ID sent with the request to help with debugging.
GET

/docs/search.suggest

Suggests documents in the index that match the given partial query text.

  • search (query, required) — The search text to use to suggest documents. Must be at least 1 character, and no more than 100 characters.
  • suggesterName (query, required) — The name of the suggester as specified in the suggesters collection that's part of the index definition.
  • $filter (query) — An OData expression that filters the documents considered for suggestions.
  • fuzzy (query) — 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.
  • highlightPostTag (query) — A string tag that is appended to hit highlights. Must be set with highlightPreTag. If omitted, hit highlighting of suggestions is disabled.
  • highlightPreTag (query) — A string tag that is prepended to hit highlights. Must be set with highlightPostTag. If omitted, hit highlighting of suggestions is disabled.
  • minimumCoverage (query) — 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.
  • $orderby (query) — 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.
  • searchFields (query) — The list of field names to search for the specified search text. Target fields must be included in the specified suggester.
  • $select (query) — The list of fields to retrieve. If unspecified, only the key field will be included in the results.
  • $top (query, limit) — The number of suggestions to retrieve. The value must be a number between 1 and 100. The default is 5.
  • api-version (query, required) — Client Api Version.
  • client-request-id (header) — The tracking ID sent with the request to help with debugging.

9 endpoints auto-detected

curl -X GET \
  "https://azure.local/docs"

azure.local · HTTPS only