How to Disable semantic ranking using the REST API?

Karuna Tiwari 60 Reputation points

How to Disable semantic ranking using the REST API? I am using the below code :

      "properties": {
        "semanticSearch": "disabled"

But getting errors.

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.
613 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,215 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 12,241 Reputation points

    To enable semantic ranking using the REST API, you can use the Create or Update Service API.

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

    • Management REST API version 2023-11-01 provides the configuration property.
    • Owner or Contributor permissions are required to enable or disable features.

    Link to documentation :

    PATCH{{subscriptionId}}/resourcegroups/{{resource-group}}/providers/Microsoft.Search/searchServices/{{search-service-name}}?api-version=2023-11-01     {       "properties": {         "semanticSearch": "standard"       }     }
    0 comments No comments