I want to confirm what is the total search keywords can be searched at a single query in Azure AI Search

Nagar, Sunil 0 Reputation points
2026-08-11T08:06:50.9266667+00:00

I am searching within Azure Index via REST API, now I want to confirm what is the search query limit such as how many keywords searches I can do within one single query with AI Search.

Azure AI Search
Azure AI Search

An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.


3 answers

Sort by: Most helpful
  1. Nithin 245 Reputation points
    2026-08-17T02:48:31.0933333+00:00

    Hi,

    Here are the official query and search keyword limits for Azure AI Search:

    • Individual Search Term Limit: Maximum 32,766 bytes (~32 KB) per keyword term (or 1,000 characters for prefix/regex searches).
    • Total Search Clause Limit: Maximum 100,000 characters in the search query string.
    • Maximum Query Expressions: Up to 3,000 clauses (or 1,024 in simple syntax) joined by AND/OR.
    • Request Payload: Up to 16 MB for POST requests (or 8 KB URL length for GET requests).

    Ref: Azure AI Search Query & Service Limits

    Was this answer helpful?

    0 comments No comments

  2. Andrew Taylor - COREZENN 1,225 Reputation points Volunteer Moderator
    2026-08-11T23:33:21.1+00:00

    Hi @Nagar, Sunil

    Thanks for reaching out to Microsoft Q&A. I understand you are evaluating the Azure AI Search capabilities, and for such there isn't really a "number of keywords" limit, but instead, what Azure AI Search actually caps is the number of search clauses (terms/expressions joined by AND/OR) in a single search query, plus a few related size limits on the query and on individual terms.

    Based on the Service limits in Azure AI Search documentation, the current limits for the Query APIs are:

    • Maximum number of clauses in a search query: 3,000
    • Maximum length of a single search clause: 100,000 characters
    • Maximum search term size: 32,766 bytes (32 KB minus 2 bytes) of UTF-8 encoded text for keyword search and vector-search text
    • Maximum search term size for prefix search or regex search: 1,000 characters
    • Overall request payload: up to 16 MB for POST requests; GET requests are limited to an 8‑KB URL

    One thing worth flagging: the Simple query syntax doc page lists the max clause count as 1,024 rather than 3,000. I'd treat the dedicated Service limits page as the current source of truth for capacity planning, since it's the article Microsoft maintains specifically for these numbers. Still, if you're building a query composer that could realistically approach these limits, it's worth designing it so it can't generate an unbounded number of clauses in the first place, since both pages call out that unbounded queries can destabilize the search service.

    Please 'Upvote ' (thumbs-up) and 'Accept' as an answer. This will be helpful to other community members facing the same issue.

    Best regards, Andrew S Taylor

    Was this answer helpful?

    0 comments No comments

  3. AI answer

    2026-08-11T08:07:05.02+00:00

    For a single Azure AI Search query, the supported limits are:

    • Maximum search clause length: 100,000 characters
    • Maximum number of clauses in search: 3,000 for Query APIs
    • For simple query syntax: 1,024 clauses when expressions are separated by AND or OR
    • Maximum search term size: about 32 KB for a term in UTF-8 text
    • Prefix search term size: 1,000 characters
    • REST GET URL length: 8 KB maximum
    • POST request payload size: 16 MB maximum

    If “how many keywords” means how many terms can be combined in one query, the practical limit is controlled by the number of clauses and the total search clause length, not by a separate keyword-count setting.

    If the query is being built programmatically, keep it bounded because very large queries can destabilize the service.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.