Enable or disable semantic ranker

Semantic ranker is a premium feature billed by usage. By default, semantic ranker is turned off when you create a new search service, but anyone with Contributor permissions can enable it. If you don't want anyone enabling it inadvertently, you can disable it using the REST API.

Check availability

To check if semantic ranker is available in your region, see the Azure AI Search regions list.

Enable semantic ranker

Follow these steps to enable semantic ranker at the service level. Once enabled, it's available to all indexes. You can't turn it on or off for specific indexes.

  1. Open the Azure portal.

  2. Navigate to your search service. On the Overview page, make sure the pricing tier is set to Basic or higher.

  3. On the left-navigation pane, select Settings > Semantic ranker.

  4. Select either the Free plan or the Standard plan. You can switch between the free plan and the standard plan at any time.

    Screenshot of enabling semantic ranking in the Azure portal.

The free plan is capped at 1,000 queries per month. After the first 1,000 queries in the free plan, an error message indicates you exhausted your quota on the next semantic query. When quota is exhausted, you should upgrade to the standard plan to continue using semantic ranking.

Disable semantic ranker using the REST API

To turn off feature enablement, or for full protection against accidental usage and charges, you can disable semantic ranker by using the Create or Update Service API on your search service. After the feature is disabled, any requests that include the semantic query type are rejected.

Management REST API calls are authenticated through Microsoft Entra ID. For instructions on how to authenticate, see Manage your Azure AI Search service with REST APIs.

PATCH https://management.azure.com/subscriptions/{{subscriptionId}}/resourcegroups/{{resource-group}}/providers/Microsoft.Search/searchServices/{{search-service-name}}?api-version=2023-11-01
    {
      "properties": {
        "semanticSearch": "disabled"
      }
    }

To re-enable semantic ranker, run the previous request again and set semanticSearch to either Free (default) or Standard.

Next step