How to Disable semantic ranking using the REST API?

Karuna Tiwari 60 Reputation points
2024-01-30T10:10:47.2766667+00:00

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

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"
      }
    }


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
    2024-01-31T10:10:19.05+00:00

    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 : https://learn.microsoft.com/en-us/azure/search/semantic-how-to-enable-disable?tabs=enable-rest

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