Azure AI Search · Schema

SearchRequest

Parameters for filtering, sorting, faceting, paging, and other search query behaviors.

Artificial IntelligenceSearchMicrosoft AzureCloudServices

Properties

Name Type Description
count boolean 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.
facets array 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 string The OData $filter expression to apply to the search query.
highlight string The comma-separated list of field names to use for hit highlights. Only searchable fields can be used for hit highlighting.
highlightPostTag string A string tag that is appended to hit highlights. Must be set with highlightPreTag. Default is </em>.
highlightPreTag string A string tag that is prepended to hit highlights. Must be set with highlightPostTag. Default is <em>.
minimumCoverage number 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 s
moreLikeThis string The key of the document to use as the basis for finding similar documents. This parameter cannot be used together with search text.
orderby string 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.
queryType object A value that specifies the syntax of the search query. The default is 'simple'. Use 'full' if your query uses the Lucene query syntax.
scoringStatistics object A value that specifies whether we want to calculate scoring statistics (such as document frequency) globally for more consistent scoring, or locally, for lower latency. The default is 'local'. Use 'gl
sessionId string A value to be used to create a sticky session, which can help getting more consistent results. As long as the same sessionId is used, a best-effort attempt will be made to target the same replica set.
scoringParameters array 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 paramete
scoringProfile string The name of a scoring profile to evaluate match scores for matching documents in order to sort the results.
debug object Enables a debugging tool that can be used to further explore your reranked results.
search string A full-text search query expression; Use "*" or omit this parameter to match all documents.
searchFields string 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 ex
searchMode object 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 string The comma-separated list of fields to retrieve. If unspecified, all fields marked as retrievable in the schema are included.
skip integer 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 tota
top integer 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
semanticConfiguration string The name of a semantic configuration that will be used when processing documents for queries of type semantic.
semanticErrorHandling object Allows the user to choose whether a semantic call should fail completely (default / current behavior), or to return partial results.
semanticMaxWaitInMilliseconds integer Allows the user to set an upper bound on the amount of time it takes for semantic enrichment to finish processing before the request fails.
semanticQuery string Allows setting a separate search query that will be solely used for semantic reranking, semantic captions and semantic answers. Is useful for scenarios where there is a need to use different queries b
answers object A value that specifies whether answers should be returned as part of the search response.
captions object A value that specifies whether captions should be returned as part of the search response.
vectorQueries array The query parameters for vector and hybrid search queries.
vectorFilterMode object Determines whether or not filters are applied before or after the vector search is performed. Default is 'preFilter' for new indexes.
View JSON Schema on GitHub

JSON Schema

azure-ai-search-search-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-ai-search/json-schema/azure-ai-search-search-request-schema.json",
  "title": "SearchRequest",
  "description": "Parameters for filtering, sorting, faceting, paging, and other search query behaviors.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-ai-search-indexes-indexname-api-openapi.yml#/components/schemas/SearchRequest",
  "type": "object",
  "properties": {
    "count": {
      "type": "boolean",
      "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."
    },
    "facets": {
      "type": "array",
      "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.",
      "items": {
        "type": "string"
      }
    },
    "filter": {
      "type": "string",
      "description": "The OData $filter expression to apply to the search query."
    },
    "highlight": {
      "type": "string",
      "description": "The comma-separated list of field names to use for hit highlights. Only searchable fields can be used for hit highlighting."
    },
    "highlightPostTag": {
      "type": "string",
      "description": "A string tag that is appended to hit highlights. Must be set with highlightPreTag. Default is &lt;/em&gt;."
    },
    "highlightPreTag": {
      "type": "string",
      "description": "A string tag that is prepended to hit highlights. Must be set with highlightPostTag. Default is &lt;em&gt;."
    },
    "minimumCoverage": {
      "type": "number",
      "format": "double",
      "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."
    },
    "moreLikeThis": {
      "type": "string",
      "description": "The key of the document to use as the basis for finding similar documents. This parameter cannot be used together with search text."
    },
    "orderby": {
      "type": "string",
      "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."
    },
    "queryType": {
      "$ref": "#/$defs/QueryType",
      "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."
    },
    "scoringStatistics": {
      "$ref": "#/$defs/ScoringStatistics",
      "description": "A value that specifies whether we want to calculate scoring statistics (such as document frequency) globally for more consistent scoring, or locally, for lower latency. The default is 'local'. Use 'global' to aggregate scoring statistics globally before scoring. Using global scoring statistics can increase latency of search queries."
    },
    "sessionId": {
      "type": "string",
      "description": "A value to be used to create a sticky session, which can help getting more consistent results. As long as the same sessionId is used, a best-effort attempt will be made to target the same replica set. Be wary that reusing the same sessionID values repeatedly can interfere with the load balancing of the requests across replicas and adversely affect the performance of the search service. The value used as sessionId cannot start with a '_' character."
    },
    "scoringParameters": {
      "type": "array",
      "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"
      }
    },
    "scoringProfile": {
      "type": "string",
      "description": "The name of a scoring profile to evaluate match scores for matching documents in order to sort the results."
    },
    "debug": {
      "$ref": "#/$defs/QueryDebugMode",
      "description": "Enables a debugging tool that can be used to further explore your reranked results."
    },
    "search": {
      "type": "string",
      "description": "A full-text search query expression; Use \"*\" or omit this parameter to match all documents."
    },
    "searchFields": {
      "type": "string",
      "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."
    },
    "searchMode": {
      "$ref": "#/$defs/SearchMode",
      "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."
    },
    "select": {
      "type": "string",
      "description": "The comma-separated list of fields to retrieve. If unspecified, all fields marked as retrievable in the schema are included."
    },
    "skip": {
      "type": "integer",
      "format": "int32",
      "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."
    },
    "top": {
      "type": "integer",
      "format": "int32",
      "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."
    },
    "semanticConfiguration": {
      "type": "string",
      "description": "The name of a semantic configuration that will be used when processing documents for queries of type semantic."
    },
    "semanticErrorHandling": {
      "$ref": "#/$defs/SemanticErrorMode",
      "description": "Allows the user to choose whether a semantic call should fail completely (default / current behavior), or to return partial results."
    },
    "semanticMaxWaitInMilliseconds": {
      "type": "integer",
      "format": "int32",
      "description": "Allows the user to set an upper bound on the amount of time it takes for semantic enrichment to finish processing before the request fails.",
      "minimum": 700
    },
    "semanticQuery": {
      "type": "string",
      "description": "Allows setting a separate search query that will be solely used for semantic reranking, semantic captions and semantic answers. Is useful for scenarios where there is a need to use different queries between the base retrieval and ranking phase, and the L2 semantic phase."
    },
    "answers": {
      "$ref": "#/$defs/QueryAnswerType",
      "description": "A value that specifies whether answers should be returned as part of the search response."
    },
    "captions": {
      "$ref": "#/$defs/QueryCaptionType",
      "description": "A value that specifies whether captions should be returned as part of the search response."
    },
    "vectorQueries": {
      "type": "array",
      "description": "The query parameters for vector and hybrid search queries.",
      "items": {
        "$ref": "#/$defs/VectorQuery"
      }
    },
    "vectorFilterMode": {
      "$ref": "#/$defs/VectorFilterMode",
      "description": "Determines whether or not filters are applied before or after the vector search is performed. Default is 'preFilter' for new indexes."
    }
  },
  "$defs": {
    "QueryAnswerType": {
      "type": "string",
      "description": "This parameter is only valid if the query type is `semantic`. If set, the query returns answers extracted from key passages in the highest ranked documents. The number of answers returned can be configured by appending the pipe character `|` followed by the `count-<number of answers>` option after the answers parameter value, such as `extractive|count-3`. Default count is 1. The confidence threshold can be configured by appending the pipe character `|` followed by the `threshold-<confidence threshold>` option after the answers parameter value, such as `extractive|threshold-0.9`. Default threshold is 0.7. The maximum character length of answers can be configured by appending the pipe character '|' followed by the 'count-<number of maximum character length>', such as 'extractive|maxcharlength-600'.",
      "enum": [
        "none",
        "extractive"
      ],
      "x-ms-enum": {
        "name": "QueryAnswerType",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "none",
            "description": "Do not return answers for the query."
          },
          {
            "name": "Extractive",
            "value": "extractive",
            "description": "Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language."
          }
        ]
      }
    },
    "QueryCaptionType": {
      "type": "string",
      "description": "This parameter is only valid if the query type is `semantic`. If set, the query returns captions extracted from key passages in the highest ranked documents. When Captions is set to `extractive`, highlighting is enabled by default, and can be configured by appending the pipe character `|` followed by the `highlight-<true/false>` option, such as `extractive|highlight-true`. Defaults to `None`. The maximum character length of captions can be configured by appending the pipe character '|' followed by the 'count-<number of maximum character length>', such as 'extractive|maxcharlength-600'.",
      "enum": [
        "none",
        "extractive"
      ],
      "x-ms-enum": {
        "name": "QueryCaptionType",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "none",
            "description": "Do not return captions for the query."
          },
          {
            "name": "Extractive",
            "value": "extractive",
            "description": "Extracts captions from the matching documents that contain passages relevant to the search query."
          }
        ]
      }
    },
    "QueryDebugMode": {
      "type": "string",
      "description": "Enables a debugging tool that can be used to further explore your search results. You can enable multiple debug modes simultaneously by separating them with a | character, for example: semantic|queryRewrites.",
      "enum": [
        "disabled",
        "semantic",
        "vector",
        "queryRewrites",
        "innerHits",
        "all"
      ],
      "x-ms-enum": {
        "name": "QueryDebugMode",
        "modelAsString": true,
        "values": [
          {
            "name": "Disabled",
            "value": "disabled",
            "description": "No query debugging information will be returned."
          },
          {
            "name": "Semantic",
            "value": "semantic",
            "description": "Allows the user to further explore their reranked results."
          },
          {
            "name": "Vector",
            "value": "vector",
            "description": "Allows the user to further explore their hybrid and vector query results."
          },
          {
            "name": "QueryRewrites",
            "value": "queryRewrites",
            "description": "Allows the user to explore the list of query rewrites generated for their search request."
          },
          {
            "name": "InnerHits",
            "value": "innerHits",
            "description": "Allows the user to retrieve scoring information regarding vectors matched within a collection of complex types."
          },
          {
            "name": "All",
            "value": "all",
            "description": "Turn on all debug options."
          }
        ]
      }
    },
    "QueryType": {
      "type": "string",
      "description": "Specifies the syntax of the search query. The default is 'simple'. Use 'full' if your query uses the Lucene query syntax and 'semantic' if query syntax is not needed.",
      "enum": [
        "simple",
        "full",
        "semantic"
      ],
      "x-ms-enum": {
        "name": "QueryType",
        "modelAsString": true,
        "values": [
          {
            "name": "Simple",
            "value": "simple",
            "description": "Uses the simple query syntax for searches. Search text is interpreted using a simple query language that allows for symbols such as +, * and \"\". Queries are evaluated across all searchable fields by default, unless the searchFields parameter is specified."
          },
          {
            "name": "Full",
            "value": "full",
            "description": "Uses the full Lucene query syntax for searches. Search text is interpreted using the Lucene query language which allows field-specific and weighted searches, as well as other advanced features."
          },
          {
            "name": "Semantic",
            "value": "semantic",
            "description": "Best suited for queries expressed in natural language as opposed to keywords. Improves precision of search results by re-ranking the top search results using a ranking model trained on the Web corpus."
          }
        ]
      }
    },
    "ScoringStatistics": {
      "type": "string",
      "description": "A value that specifies whether we want to calculate scoring statistics (such as document frequency) globally for more consistent scoring, or locally, for lower latency. The default is 'local'. Use 'global' to aggregate scoring statistics globally before scoring. Using global scoring statistics can increase latency of search queries.",
      "enum": [
        "local",
        "global"
      ],
      "x-ms-enum": {
        "name": "ScoringStatistics",
        "modelAsString": false,
        "values": [
          {
            "name": "Local",
            "value": "local",
            "description": "The scoring statistics will be calculated locally for lower latency."
          },
          {
            "name": "Global",
            "value": "global",
            "description": "The scoring statistics will be calculated globally for more consistent scoring."
          }
        ]
      }
    },
    "SearchMode": {
      "type": "string",
      "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"
      ],
      "x-ms-enum": {
        "name": "SearchMode",
        "modelAsString": false,
        "values": [
          {
            "name": "Any",
            "value": "any",
            "description": "Any of the search terms must be matched in order to count the document as a match."
          },
          {
            "name": "All",
            "value": "all",
            "description": "All of the search terms must be matched in order to count the document as a match."
          }
        ]
      }
    },
    "SemanticErrorMode": {
      "type": "string",
      "description": "Allows the user to choose whether a semantic call should fail completely, or to return partial results.",
      "enum": [
        "partial",
        "fail"
      ],
      "x-ms-enum": {
        "name": "SemanticErrorMode",
        "modelAsString": true,
        "values": [
          {
            "name": "Partial",
            "value": "partial",
            "description": "If the semantic processing fails, partial results still return. The definition of partial results depends on what semantic step failed and what was the reason for failure."
          },
          {
            "name": "Fail",
            "value": "fail",
            "description": "If there is an exception during the semantic processing step, the query will fail and return the appropriate HTTP code depending on the error."
          }
        ]
      }
    },
    "VectorFilterMode": {
      "type": "string",
      "description": "Determines whether or not filters are applied before or after the vector search is performed.",
      "enum": [
        "postFilter",
        "preFilter"
      ],
      "x-ms-enum": {
        "name": "VectorFilterMode",
        "modelAsString": true,
        "values": [
          {
            "name": "PostFilter",
            "value": "postFilter",
            "description": "The filter will be applied after the candidate set of vector results is returned. Depending on the filter selectivity, this can result in fewer results than requested by the parameter 'k'."
          },
          {
            "name": "PreFilter",
            "value": "preFilter",
            "description": "The filter will be applied before the search query."
          }
        ]
      }
    },
    "VectorQuery": {
      "type": "object",
      "description": "The query parameters for vector and hybrid search queries.",
      "properties": {
        "k": {
          "type": "integer",
          "format": "int32",
          "description": "Number of nearest neighbors to return as top hits."
        },
        "fields": {
          "type": "string",
          "description": "Vector Fields of type Collection(Edm.Single) to be included in the vector searched."
        },
        "exhaustive": {
          "type": "boolean",
          "description": "When true, triggers an exhaustive k-nearest neighbor search across all vectors within the vector index. Useful for scenarios where exact matches are critical, such as determining ground truth values."
        },
        "oversampling": {
          "type": "number",
          "format": "double",
          "description": "Oversampling factor. Minimum value is 1. It overrides the 'defaultOversampling' parameter configured in the index definition. It can be set only when 'rerankWithOriginalVectors' is true. This parameter is only permitted when a compression method is used on the underlying vector field."
        },
        "weight": {
          "type": "number",
          "format": "float",
          "description": "Relative weight of the vector query when compared to other vector query and/or the text query within the same search request. This value is used when combining the results of multiple ranking lists produced by the different vector queries and/or the results retrieved through the text query. The higher the weight, the higher the documents that matched that query will be in the final ranking. Default is 1.0 and the value needs to be a positive number larger than zero."
        },
        "kind": {
          "$ref": "#/$defs/VectorQueryKind",
          "description": "Type of query."
        }
      },
      "required": [
        "kind"
      ]
    },
    "VectorQueryKind": {
      "type": "string",
      "description": "The kind of vector query being performed.",
      "enum": [
        "vector",
        "text"
      ],
      "x-ms-enum": {
        "name": "VectorQueryKind",
        "modelAsString": true,
        "values": [
          {
            "name": "Vector",
            "value": "vector",
            "description": "Vector query where a raw vector value is provided."
          },
          {
            "name": "Text",
            "value": "text",
            "description": "Vector query where a text value that needs to be vectorized is provided."
          }
        ]
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/azure-ai-search-search-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.