Microsoft Corporation Azure Search Documents Client Library for Python
Project description
Azure AI Search client library for Python
Azure AI Search (formerly known as "Azure Cognitive Search") is an AI-powered information retrieval platform that helps developers build rich search experiences and generative AI apps that combine large language models with enterprise data.
Azure AI Search is well suited for the following application scenarios:
- Consolidate varied content types into a single searchable index. To populate an index, you can push JSON documents that contain your content, or if your data is already in Azure, create an indexer to pull in data automatically.
- Attach skillsets to an indexer to create searchable content from images and unstructured documents. A skillset leverages APIs from Azure AI Services for built-in OCR, entity recognition, key phrase extraction, language detection, text translation, and sentiment analysis. You can also add custom skills to integrate external processing of your content during data ingestion.
- In a search client application, implement query logic and user experiences similar to commercial web search engines and chat-style apps.
Use the Azure.Search.Documents client library to:
- Submit queries using vector, keyword, and hybrid query forms.
- Implement filtered queries for metadata, geospatial search, faceted navigation, or to narrow results based on filter criteria.
- Create and manage search indexes.
- Upload and update documents in the search index.
- Create and manage indexers that pull data from Azure into an index.
- Create and manage skillsets that add AI enrichment to data ingestion.
- Create and manage analyzers for advanced text analysis or multi-lingual content.
- Optimize results through semantic ranking and scoring profiles to factor in business logic or freshness.
Source code | Package (PyPI) | Package (Conda) | API reference documentation | Product documentation | Samples
Getting started
Install the package
Install the Azure AI Search client library for Python with pip:
pip install azure-search-documents
Prerequisites
- Python 3.8 or later is required to use this package.
- You need an Azure subscription and an Azure AI Search service to use this package.
To create a new search service, you can use the Azure portal, Azure PowerShell, or the Azure CLI.
az search service create --name <mysearch> --resource-group <mysearch-rg> --sku free --location westus
See choosing a pricing tier for more information about available options.
Authenticate the client
To interact with the search service, you'll need to create an instance of the appropriate client class: SearchClient for searching indexed documents, SearchIndexClient for managing indexes, or SearchIndexerClient for crawling data sources and loading search documents into an index. To instantiate a client object, you'll need an endpoint and Azure roles or an API key. You can refer to the documentation for more information on supported authenticating approaches with the search service.
Get an API Key
An API key can be an easier approach to start with because it doesn't require pre-existing role assignments.
You can get the endpoint and an API key from the Search service in the Azure portal. Please refer the documentation for instructions on how to get an API key.
Alternatively, you can use the following Azure CLI command to retrieve the API key from the Search service:
az search admin-key show --service-name <mysearch> --resource-group <mysearch-rg>
There are two types of keys used to access your search service: admin (read-write) and query (read-only) keys. Restricting access and operations in client apps is essential to safeguarding the search assets on your service. Always use a query key rather than an admin key for any query originating from a client app.
Note: The example Azure CLI snippet above retrieves an admin key so it's easier to get started exploring APIs, but it should be managed carefully.
Create a SearchClient
To instantiate the SearchClient, you'll need the endpoint, API key and index name:
from azure.core.credentials import AzureKeyCredential
from azure.search.documents import SearchClient
service_endpoint = os.environ["AZURE_SEARCH_SERVICE_ENDPOINT"]
index_name = os.environ["AZURE_SEARCH_INDEX_NAME"]
key = os.environ["AZURE_SEARCH_API_KEY"]
search_client = SearchClient(service_endpoint, index_name, AzureKeyCredential(key))
Create a client using Microsoft Entra ID authentication
You can also create a SearchClient, SearchIndexClient, or SearchIndexerClient using Microsoft Entra ID authentication. Your user or service principal must be assigned the "Search Index Data Reader" role.
Using the DefaultAzureCredential you can authenticate a service using Managed Identity or a service principal, authenticate as a developer working on an application, and more all without changing code. Please refer the documentation for instructions on how to connect to Azure AI Search using Azure role-based access control (Azure RBAC).
Before you can use the DefaultAzureCredential, or any credential type from Azure.Identity, you'll first need to install the Azure.Identity package.
To use DefaultAzureCredential with a client ID and secret, you'll need to set the AZURE_TENANT_ID, AZURE_CLIENT_ID, and AZURE_CLIENT_SECRET environment variables; alternatively, you can pass those values
to the ClientSecretCredential also in Azure.Identity.
Make sure you use the right namespace for DefaultAzureCredential at the top of your source file:
from azure.identity import DefaultAzureCredential
from azure.search.documents import SearchClient
service_endpoint = os.getenv("AZURE_SEARCH_SERVICE_ENDPOINT")
index_name = os.getenv("AZURE_SEARCH_INDEX_NAME")
credential = DefaultAzureCredential()
search_client = SearchClient(service_endpoint, index_name, credential)
Key concepts
An Azure AI Search service contains one or more indexes that provide persistent storage of searchable data in the form of JSON documents. (If you're brand new to search, you can make a very rough analogy between indexes and database tables.) The Azure.Search.Documents client library exposes operations on these resources through three main client types.
-
SearchClienthelps with:- Searching your indexed documents using vector queries, keyword queries and hybrid queries
- Vector query filters and Text query filters
- Semantic ranking and scoring profiles for boosting relevance
- Autocompleting partially typed search terms based on documents in the index
- Suggesting the most likely matching text in documents as a user types
- Adding, Updating or Deleting Documents documents from an index
-
SearchIndexClientallows you to:
SearchIndexerClientallows you to:
Azure AI Search provides two powerful features: semantic ranking and vector search.
Semantic ranking enhances the quality of search results for text-based queries. By enabling semantic ranking on your search service, you can improve the relevance of search results in two ways:
- It applies secondary ranking to the initial result set, promoting the most semantically relevant results to the top.
- It extracts and returns captions and answers in the response, which can be displayed on a search page to enhance the user's search experience.
To learn more about semantic ranking, you can refer to the documentation.
Vector search is an information retrieval technique that uses numeric representations of searchable documents and query strings. By searching for numeric representations of content that are most similar to the numeric query, vector search can find relevant matches, even if the exact terms of the query are not present in the index. Moreover, vector search can be applied to various types of content, including images and videos and translated text, not just same-language text.
To learn how to index vector fields and perform vector search, you can refer to the sample. This sample provides detailed guidance on indexing vector fields and demonstrates how to perform vector search.
Additionally, for more comprehensive information about vector search, including its concepts and usage, you can refer to the documentation. The documentation provides in-depth explanations and guidance on leveraging the power of vector search in Azure AI Search.
_The Azure.Search.Documents client library (v1) provides APIs for data plane operations. The
previous Microsoft.Azure.Search client library (v10) is now retired. It has many similar looking APIs, so please be careful to avoid confusion when exploring online resources. A good rule of thumb is to check for the namespace
Azure.Search.Documents; when you're looking for API reference.
Examples
The following examples all use a simple Hotel data set that you can import into your own index from the Azure portal. These are just a few of the basics - please check out our Samples for much more.
- Querying
- Creating an index
- Adding documents to your index
- Retrieving a specific document from your index
- Async APIs
Querying
Let's start by importing our namespaces.
import os
from azure.core.credentials import AzureKeyCredential
from azure.search.documents import SearchClient
We'll then create a SearchClient to access our hotels search index.
index_name = "hotels"
# Get the service endpoint and API key from the environment
endpoint = os.environ["SEARCH_ENDPOINT"]
key = os.environ["SEARCH_API_KEY"]
# Create a client
credential = AzureKeyCredential(key)
client = SearchClient(endpoint=endpoint,
index_name=index_name,
credential=credential)
Let's search for a "luxury" hotel.
results = client.search(search_text="luxury")
for result in results:
print("{}: {})".format(result["hotelId"], result["hotelName"]))
Creating an index
You can use the SearchIndexClient to create a search index. Fields can be
defined using convenient SimpleField, SearchableField, or ComplexField
models. Indexes can also define suggesters, lexical analyzers, and more.
from azure.core.credentials import AzureKeyCredential
from azure.search.documents.indexes import SearchIndexClient
from azure.search.documents.indexes.models import (
ComplexField,
CorsOptions,
SearchIndex,
ScoringProfile,
SearchFieldDataType,
SimpleField,
SearchableField,
)
index_client = SearchIndexClient(service_endpoint, AzureKeyCredential(key))
fields = [
SimpleField(name="HotelId", type=SearchFieldDataType.STRING, key=True),
SimpleField(name="HotelName", type=SearchFieldDataType.STRING, searchable=True),
SimpleField(name="BaseRate", type=SearchFieldDataType.DOUBLE),
SearchableField(name="Description", type=SearchFieldDataType.STRING, collection=True),
ComplexField(
name="Address",
fields=[
SimpleField(name="StreetAddress", type=SearchFieldDataType.STRING),
SimpleField(name="City", type=SearchFieldDataType.STRING),
],
collection=True,
),
]
cors_options = CorsOptions(allowed_origins=["*"], max_age_in_seconds=60)
scoring_profiles: List[ScoringProfile] = []
index = SearchIndex(
name=index_name,
fields=fields,
scoring_profiles=scoring_profiles,
cors_options=cors_options,
)
result = index_client.create_index(index)
print(f"Created: index '{result.name}'")
Adding documents to your index
You can Upload, Merge, MergeOrUpload, and Delete multiple documents from
an index in a single batched request. There are
a few special rules for merging
to be aware of.
from azure.core.credentials import AzureKeyCredential
from azure.search.documents import SearchClient
search_client = SearchClient(service_endpoint, index_name, AzureKeyCredential(key))
document = {
"HotelId": "100",
"HotelName": "Azure Sanctuary",
"Description": "A quiet retreat offering understated elegance and premium amenities.",
"Description_fr": "Meilleur hôtel en ville si vous aimez les hôtels de luxe.",
"Category": "Luxury",
"Tags": [
"pool",
"view",
"wifi",
"concierge",
"private beach",
"gourmet dining",
"spa",
],
"ParkingIncluded": False,
"LastRenovationDate": "2024-01-15T00:00:00+00:00",
"Rating": 5,
"Location": {"type": "Point", "coordinates": [-122.131577, 47.678581]},
}
result = search_client.upload_documents(documents=[document])
print(f"Uploaded: document 100 (succeeded={result[0].succeeded})")
Authenticate in a National Cloud
To authenticate in a National Cloud, you will need to make the following additions to your client configuration:
- Set the
AuthorityHostin the credential options or via theAZURE_AUTHORITY_HOSTenvironment variable - Set the
audienceinSearchClient,SearchIndexClient, orSearchIndexerClient
# Create a SearchClient that will authenticate through AAD in the China national cloud.
import os
from azure.identity import DefaultAzureCredential, AzureAuthorityHosts
from azure.search.documents import SearchClient
index_name = "hotels"
endpoint = os.environ["SEARCH_ENDPOINT"]
key = os.environ["SEARCH_API_KEY"]
credential = DefaultAzureCredential(authority=AzureAuthorityHosts.AZURE_CHINA)
search_client = SearchClient(endpoint, index_name, credential=credential, audience="https://search.azure.cn")
Retrieving a specific document from your index
In addition to querying for documents using keywords and optional filters, you can retrieve a specific document from your index if you already know the key. You could get the key from a query, for example, and want to show more information about it or navigate your customer to that document.
from azure.core.credentials import AzureKeyCredential
from azure.search.documents import SearchClient
search_client = SearchClient(service_endpoint, index_name, AzureKeyCredential(key))
result = search_client.get_document(key="100")
print("Result:")
print(f" HotelId: 100")
print(f" HotelName: {result['HotelName']}")
Async APIs
This library includes a complete async API. To use it, you must first install an async transport, such as aiohttp. See azure-core documentation for more information.
from azure.core.credentials import AzureKeyCredential
from azure.search.documents.aio import SearchClient
search_client = SearchClient(service_endpoint, index_name, AzureKeyCredential(key))
async with search_client:
results = await search_client.search(search_text="spa")
print("Results: hotels with 'spa'")
async for result in results:
print(f" HotelName: {result['HotelName']} (rating {result['Rating']})")
Troubleshooting
General
The Azure AI Search client will raise exceptions defined in Azure Core.
Logging
This library uses the standard logging library for logging. Basic information about HTTP sessions (URLs, headers, etc.) is logged at INFO level.
Detailed DEBUG level logging, including request/response bodies and unredacted
headers, can be enabled on a client with the logging_enable keyword argument:
import sys
import logging
from azure.core.credentials import AzureKeyCredential
from azure.search.documents import SearchClient
# Create a logger for the 'azure' SDK
logger = logging.getLogger('azure')
logger.setLevel(logging.DEBUG)
# Configure a console output
handler = logging.StreamHandler(stream=sys.stdout)
logger.addHandler(handler)
# This client will log detailed information about its HTTP sessions, at DEBUG level
client = SearchClient("<service endpoint>", "<index_name>", AzureKeyCredential("<api key>"), logging_enable=True)
Similarly, logging_enable can enable detailed logging for a single operation,
even when it isn't enabled for the client:
result = client.search(search_text="spa", logging_enable=True)
Next steps
- Go further with Azure.Search.Documents and our https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples
- Read more about the Azure AI Search service
Contributing
See our Search CONTRIBUTING.md for details on building, testing, and contributing to this library.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit cla.microsoft.com.
This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Related projects
Release History
12.0.0 (2026-04-01)
Features Added
-
Below clients, models, and enum members are added for knowledge base support
azure.search.documents.knowledgebases.KnowledgeBaseRetrievalClientazure.search.documents.indexes.models.AzureBlobKnowledgeSourceazure.search.documents.indexes.models.IndexedOneLakeKnowledgeSourceazure.search.documents.indexes.models.KnowledgeBaseazure.search.documents.indexes.models.SearchIndexKnowledgeSourceazure.search.documents.indexes.models.WebKnowledgeSourceazure.search.documents.knowledgebases.models.KnowledgeBaseActivityRecordType.MODEL_WEB_SUMMARIZATIONazure.search.documents.knowledgebases.models.KnowledgeBaseModelWebSummarizationActivityRecordazure.search.documents.knowledgebases.models.KnowledgeRetrievalMinimalReasoningEffortazure.search.documents.knowledgebases.models.KnowledgeRetrievalReasoningEffortazure.search.documents.knowledgebases.models.KnowledgeSourceStatisticsazure.search.documents.knowledgebases.models.KnowledgeSourceStatusazure.search.documents.knowledgebases.models.KnowledgeSourceSynchronizationError
-
Below properties are added or changed for index and indexer enhancements
azure.search.documents.indexes.models.SearchIndexerDataSourceConnection.identityfor managed identity support on data source connections.azure.search.documents.indexes.models.SearchIndexerKnowledgeStore.identityfor managed identity support on knowledge store projections.azure.search.documents.indexes.models.SearchResourceEncryptionKey.key_versionchanged from required to optional, aligning with service behavior.
-
Below enum members and properties are added for Markdown parsing
azure.search.documents.indexes.models.BlobIndexerParsingMode.MARKDOWNenum value for native Markdown file parsing in blob indexers.azure.search.documents.indexes.models.IndexingParametersConfiguration.markdown_header_depth(h1throughh6) to set header depth for sectioning.azure.search.documents.indexes.models.IndexingParametersConfiguration.markdown_parsing_submode(oneToOneoroneToMany) to control document splitting.
-
Below models are added
azure.search.documents.indexes.models.ChatCompletionCommonModelParametersazure.search.documents.indexes.models.ChatCompletionResponseFormatazure.search.documents.indexes.models.ChatCompletionSchemaazure.search.documents.indexes.models.ChatCompletionSkillazure.search.documents.indexes.models.ContentUnderstandingSkillazure.search.documents.indexes.models.ContentUnderstandingSkillChunkingPropertiesazure.search.documents.indexes.models.ContentUnderstandingSkillChunkingUnitazure.search.documents.indexes.models.ContentUnderstandingSkillExtractionOptionsazure.search.documents.knowledgebases.models.AIServicesazure.search.documents.knowledgebases.models.CompletedSynchronizationStateazure.search.documents.knowledgebases.models.SynchronizationState
Breaking Changes
serialize()anddeserialize()methods on models are removed. Useas_dict()to serialize and the model constructor to deserialize (e.g.,index.as_dict()instead ofindex.serialize(),SearchIndex(data)instead ofSearchIndex.deserialize(data)).- Below models do not exist in this release
azure.search.documents.indexes.models.EntityRecognitionSkillazure.search.documents.indexes.models.EntityRecognitionSkillVersionazure.search.documents.indexes.models.PathHierarchyTokenizer(renamed toPathHierarchyTokenizerV2)azure.search.documents.indexes.models.SentimentSkillazure.search.documents.indexes.models.SentimentSkillVersion
- Below enum members do not exist in this release
azure.search.documents.indexes.models.SearchIndexerDataSourceType.MY_SQL(renamed toMYSQL)azure.search.documents.indexes.models.SearchIndexerDataSourceType.ONE_LAKE(renamed toONELAKE)
- Below properties do not exist in this release
azure.search.documents.indexes.models.BinaryQuantizationCompression.rerank_with_original_vectorsazure.search.documents.indexes.models.ScalarQuantizationCompression.rerank_with_original_vectorsazure.search.documents.indexes.models.VectorSearchCompression.rerank_with_original_vectors
The following changes do not impact the API of stable versions such as 11.6.0. Only code written against a beta version such as 11.7.0b2 may be affected.
-
Below models do not exist in this release
azure.search.documents.indexes.models.AIServicesVisionParametersazure.search.documents.indexes.models.AIServicesVisionVectorizerazure.search.documents.indexes.models.AzureMachineLearningSkillazure.search.documents.indexes.models.AzureOpenAITokenizerParametersazure.search.documents.indexes.models.IndexedSharePointContainerNameazure.search.documents.indexes.models.IndexerCurrentStateazure.search.documents.indexes.models.IndexerExecutionStatusDetailazure.search.documents.indexes.models.IndexerPermissionOptionazure.search.documents.indexes.models.IndexerRuntimeazure.search.documents.indexes.models.IndexingModeazure.search.documents.indexes.models.IndexStatisticsSummaryazure.search.documents.indexes.models.KnowledgeRetrievalLowReasoningEffortazure.search.documents.indexes.models.KnowledgeRetrievalMediumReasoningEffortazure.search.documents.indexes.models.KnowledgeRetrievalOutputModeazure.search.documents.indexes.models.KnowledgeSourceIngestionPermissionOptionazure.search.documents.indexes.models.PermissionFilterazure.search.documents.indexes.models.SearchIndexerCacheazure.search.documents.indexes.models.SearchIndexPermissionFilterOptionazure.search.documents.indexes.models.ServiceIndexersRuntimeazure.search.documents.indexes.models.SplitSkillEncoderModelNameazure.search.documents.indexes.models.SplitSkillUnitazure.search.documents.indexes.models.VisionVectorizeSkillazure.search.documents.knowledgebases.models.IndexedSharePointKnowledgeSourceParamsazure.search.documents.knowledgebases.models.KnowledgeBaseIndexedSharePointReferenceazure.search.documents.knowledgebases.models.KnowledgeBaseModelAnswerSynthesisActivityRecordazure.search.documents.knowledgebases.models.KnowledgeBaseModelQueryPlanningActivityRecordazure.search.documents.knowledgebases.models.KnowledgeBaseRemoteSharePointReferenceazure.search.documents.knowledgebases.models.RemoteSharePointKnowledgeSourceParamsazure.search.documents.models.DebugInfoazure.search.documents.models.HybridCountAndFacetModeazure.search.documents.models.HybridSearchazure.search.documents.models.QueryLanguageazure.search.documents.models.QueryResultDocumentInnerHitazure.search.documents.models.QueryResultDocumentRerankerInputazure.search.documents.models.QueryResultDocumentSemanticFieldazure.search.documents.models.QueryRewritesDebugInfoazure.search.documents.models.QueryRewritesTypeazure.search.documents.models.QueryRewritesValuesDebugInfoazure.search.documents.models.QuerySpellerTypeazure.search.documents.models.SearchDocumentsResultazure.search.documents.models.SearchScoreThresholdazure.search.documents.models.SemanticDebugInfoazure.search.documents.models.SemanticFieldStateazure.search.documents.models.SemanticQueryRewritesResultTypeazure.search.documents.models.VectorSimilarityThresholdazure.search.documents.models.VectorThresholdazure.search.documents.models.VectorThresholdKind- SharePoint knowledge source types (
IndexedSharePointKnowledgeSource,RemoteSharePointKnowledgeSourceand related models includingIndexedSharePointKnowledgeSourceParameters,RemoteSharePointKnowledgeSourceParameters,SharePointSensitivityLabelInfo)
-
Below properties do not exist in this release
azure.search.documents.indexes.models.ChatCompletionSkill.auth_resource_idazure.search.documents.indexes.models.ChatCompletionSkill.batch_sizeazure.search.documents.indexes.models.ChatCompletionSkill.degree_of_parallelismazure.search.documents.indexes.models.ChatCompletionSkill.http_headersazure.search.documents.indexes.models.ChatCompletionSkill.http_methodazure.search.documents.indexes.models.ChatCompletionSkill.timeoutazure.search.documents.indexes.models.IndexerExecutionResult.modeazure.search.documents.indexes.models.IndexerExecutionResult.status_detailazure.search.documents.indexes.models.KnowledgeBase.answer_instructionsazure.search.documents.indexes.models.KnowledgeBase.output_modeazure.search.documents.indexes.models.KnowledgeBase.retrieval_instructionsazure.search.documents.indexes.models.KnowledgeBase.retrieval_reasoning_effortazure.search.documents.indexes.models.KnowledgeSourceIngestionParameters.ingestion_permission_optionsazure.search.documents.indexes.models.SearchField.permission_filterazure.search.documents.indexes.models.SearchField.sensitivity_labelazure.search.documents.indexes.models.SearchIndex.permission_filter_optionazure.search.documents.indexes.models.SearchIndex.purview_enabledazure.search.documents.indexes.models.SearchIndexer.cacheazure.search.documents.indexes.models.SearchIndexerDataSourceConnection.indexer_permission_optionsazure.search.documents.indexes.models.SearchIndexerDataSourceConnection.sub_typeazure.search.documents.indexes.models.SearchIndexerDataUserAssignedIdentity.federated_identity_client_idazure.search.documents.indexes.models.SearchIndexerKnowledgeStore.parametersazure.search.documents.indexes.models.SearchIndexerStatus.current_stateazure.search.documents.indexes.models.SearchIndexerStatus.runtimeazure.search.documents.indexes.models.SearchServiceStatistics.indexers_runtimeazure.search.documents.indexes.models.SemanticConfiguration.flighting_opt_inazure.search.documents.indexes.models.SplitSkill.azure_open_ai_tokenizer_parametersazure.search.documents.indexes.models.SplitSkill.unitazure.search.documents.knowledgebases.models.AzureBlobKnowledgeSourceParams.always_query_sourceazure.search.documents.knowledgebases.models.IndexedOneLakeKnowledgeSourceParams.always_query_sourceazure.search.documents.knowledgebases.models.KnowledgeBaseRetrievalRequest.max_output_sizeazure.search.documents.knowledgebases.models.KnowledgeBaseRetrievalRequest.messagesazure.search.documents.knowledgebases.models.KnowledgeBaseRetrievalRequest.output_modeazure.search.documents.knowledgebases.models.KnowledgeBaseRetrievalRequest.retrieval_reasoning_effortazure.search.documents.knowledgebases.models.KnowledgeSourceParams.always_query_sourceazure.search.documents.knowledgebases.models.WebKnowledgeSourceParams.always_query_sourceazure.search.documents.models.DebugInfo.query_rewritesazure.search.documents.models.DocumentDebugInfo.inner_hitsazure.search.documents.models.DocumentDebugInfo.semanticazure.search.documents.models.FacetResult.avgazure.search.documents.models.FacetResult.cardinalityazure.search.documents.models.FacetResult.facetsazure.search.documents.models.FacetResult.maxazure.search.documents.models.FacetResult.minazure.search.documents.models.FacetResult.sumazure.search.documents.models.SearchDocumentsResult.debug_infoazure.search.documents.models.SearchDocumentsResult.semantic_query_rewrites_result_typeazure.search.documents.models.VectorizableTextQuery.query_rewritesazure.search.documents.models.VectorQuery.filter_overrideazure.search.documents.models.VectorQuery.per_document_vector_limitazure.search.documents.models.VectorQuery.threshold
-
Below parameters do not exist in this release
SearchClient.search.hybrid_searchSearchClient.search.query_languageSearchClient.search.query_rewritesSearchClient.search.semantic_fieldsSearchClient.search.spellerSearchIndexerClient.create_or_update_data_source_connection.skip_indexer_reset_requirement_for_cacheSearchIndexerClient.create_or_update_indexer.disable_cache_reprocessing_change_detectionSearchIndexerClient.create_or_update_indexer.skip_indexer_reset_requirement_for_cacheSearchIndexerClient.create_or_update_skillset.disable_cache_reprocessing_change_detectionSearchIndexerClient.create_or_update_skillset.skip_indexer_reset_requirement_for_cache
-
Below operations do not exist in this release
SearchIndexClient.list_index_stats_summarySearchIndexerClient.reset_documentsSearchIndexerClient.reset_skillsSearchIndexerClient.resync
-
Below enum values do not exist in this release
azure.search.documents.indexes.models.AzureOpenAIModelName.GPT4_Oazure.search.documents.indexes.models.AzureOpenAIModelName.GPT4_O_MINIazure.search.documents.indexes.models.AzureOpenAIModelName.GPT41azure.search.documents.indexes.models.AzureOpenAIModelName.GPT41_MINIazure.search.documents.indexes.models.AzureOpenAIModelName.GPT41_NANOazure.search.documents.indexes.models.AzureOpenAIModelName.GPT5azure.search.documents.indexes.models.AzureOpenAIModelName.GPT5_MINI(renamed toGPT_5_MINI)azure.search.documents.indexes.models.AzureOpenAIModelName.GPT5_NANO(renamed toGPT_5_NANO)azure.search.documents.indexes.models.KnowledgeSourceKind.INDEXED_ONE_LAKE(renamed toINDEXED_ONELAKE)azure.search.documents.indexes.models.SearchIndexerDataSourceType.SHARE_POINT(renamed toSHAREPOINT)azure.search.documents.knowledgebases.models.KnowledgeBaseActivityRecordType.INDEXED_ONE_LAKE(renamed toINDEXED_ONELAKE)azure.search.documents.knowledgebases.models.KnowledgeBaseReferenceType.INDEXED_ONE_LAKE(renamed toINDEXED_ONELAKE)azure.search.documents.knowledgebases.models.KnowledgeRetrievalReasoningEffortKind.LOWazure.search.documents.knowledgebases.models.KnowledgeRetrievalReasoningEffortKind.MEDIUM
Deprecated
The following changes are due to the migration from AutoRest to TypeSpec code generation. The old API continues to work at runtime via backward-compatible aliases:
azure.search.documents.indexes.models.SearchFieldDataTypeenum values are now UPPER_CASE (e.g.,STRINGinstead ofString). PascalCase aliases (e.g.,SearchFieldDataType.String) are preserved and continue to work at runtime.azure.search.documents.indexes.models.SearchFieldnow usesretrievable(from the API) as its native property instead ofhidden. Ahiddenproperty (the inverse ofretrievable) is preserved for backward compatibility via getter/setter.
Other Changes
- Updated default API version to
2026-04-01. - Some boolean properties now default to
Noneinstead ofTrueorFalse. There is no behavioral change — the server applies the same default when the property is omitted. Examples include:azure.search.documents.indexes.models.CommonGramTokenFilter.ignore_caseazure.search.documents.indexes.models.CommonGramTokenFilter.use_query_modeazure.search.documents.indexes.models.DictionaryDecompounderTokenFilter.only_longest_matchazure.search.documents.indexes.models.KeywordMarkerTokenFilter.ignore_caseazure.search.documents.indexes.models.StopwordsTokenFilter.ignore_caseazure.search.documents.indexes.models.SynonymTokenFilter.ignore_case
11.7.0b2 (2025-11-13)
Features Added
-
Added new models:
azure.search.documents.indexes.models.AIServicesazure.search.documents.indexes.models.CompletedSynchronizationStateazure.search.documents.indexes.models.ContentUnderstandingSkillazure.search.documents.indexes.models.ContentUnderstandingSkillChunkingPropertiesazure.search.documents.indexes.models.ContentUnderstandingSkillChunkingUnitazure.search.documents.indexes.models.ContentUnderstandingSkillExtractionOptionsazure.search.documents.indexes.models.IndexedOneLakeKnowledgeSourceazure.search.documents.indexes.models.IndexedOneLakeKnowledgeSourceParametersazure.search.documents.indexes.models.IndexedSharePointContainerNameazure.search.documents.indexes.models.IndexedSharePointKnowledgeSourceazure.search.documents.indexes.models.IndexedSharePointKnowledgeSourceParametersazure.search.documents.indexes.models.IndexerRuntimeazure.search.documents.indexes.models.KnowledgeRetrievalLowReasoningEffortazure.search.documents.indexes.models.KnowledgeRetrievalMediumReasoningEffortazure.search.documents.indexes.models.KnowledgeRetrievalMinimalReasoningEffortazure.search.documents.indexes.models.KnowledgeRetrievalOutputModeazure.search.documents.indexes.models.KnowledgeRetrievalReasoningEffortazure.search.documents.indexes.models.KnowledgeRetrievalReasoningEffortKindazure.search.documents.indexes.models.KnowledgeSourceAzureOpenAIVectorizerazure.search.documents.indexes.models.KnowledgeSourceContentExtractionModeazure.search.documents.indexes.models.KnowledgeSourceIngestionParametersazure.search.documents.indexes.models.KnowledgeSourceIngestionPermissionOptionazure.search.documents.indexes.models.KnowledgeSourceStatisticsazure.search.documents.indexes.models.KnowledgeSourceStatusazure.search.documents.indexes.models.KnowledgeSourceSynchronizationStatusazure.search.documents.indexes.models.KnowledgeSourceVectorizerazure.search.documents.indexes.models.RemoteSharePointKnowledgeSourceazure.search.documents.indexes.models.RemoteSharePointKnowledgeSourceParametersazure.search.documents.indexes.models.SearchIndexFieldReferenceazure.search.documents.indexes.models.ServiceIndexersRuntimeazure.search.documents.indexes.models.SynchronizationStateazure.search.documents.indexes.models.WebKnowledgeSourceazure.search.documents.indexes.models.WebKnowledgeSourceDomainazure.search.documents.indexes.models.WebKnowledgeSourceDomainsazure.search.documents.indexes.models.WebKnowledgeSourceParameters
-
Expanded existing models and enums:
- Added support for
avg,min,max, andcardinalitymetrics onazure.search.documents.models.FacetResult. - Added
is_adls_gen2andingestion_parametersoptions onazure.search.documents.indexes.models.AzureBlobKnowledgeSourceParameters. - Added support for
gpt-5,gpt-5-mini, andgpt-5-nanovalues onazure.search.documents.indexes.models.AzureOpenAIModelName. - Added support for
web,remoteSharePoint,indexedSharePoint, andindexedOneLakevalues onazure.search.documents.indexes.models.KnowledgeSourceKind. - Added support for
onelakeandsharepointvalues onazure.search.documents.indexes.models.SearchIndexerDataSourceConnection.type. - Added
azure.search.documents.indexes.models.SearchField.sensitivity_label. - Added
azure.search.documents.indexes.models.SearchIndexerStatus.runtime. - Added
azure.search.documents.indexes.models.SearchIndex.purview_enabled. - Added
azure.search.documents.indexes.models.SearchServiceLimits.max_cumulative_indexer_runtime_seconds. - Added
azure.search.documents.indexes.models.SearchServiceStatistics.indexers_runtime. - Added
productaggregation support toazure.search.documents.indexes.models.ScoringFunctionAggregation. - Added
share_pointtoazure.search.documents.indexes.models.SearchIndexerDataSourceType. - Added
include_references,include_reference_source_data,always_query_source, andreranker_thresholdoptions onazure.search.documents.knowledgebases.models.SearchIndexKnowledgeSourceParams. - Added
errortracking details onazure.search.documents.knowledgebases.models.KnowledgeBaseActivityRecordderivatives.
- Added support for
-
Client and service enhancements:
- Added support for HTTP 206 partial content responses when calling
azure.search.documents.knowledgebases.KnowledgeBaseRetrievalClient.knowledge_retrieval.retrieve. - Added optional
x_ms_enable_elevated_readkeyword toazure.search.documents.SearchClient.searchandazure.search.documents.aio.SearchClient.searchfor elevated document reads.
- Added support for HTTP 206 partial content responses when calling
Breaking Changes
These changes do not impact the API of stable versions such as 11.6.0. Only code written against a beta version such as 11.6.0b12 may be affected.
- Knowledge base naming and routing refresh:
- Renamed the knowledge agent surface area to the knowledge base equivalents:
azure.search.documents.indexes.models.KnowledgeAgent->azure.search.documents.indexes.models.KnowledgeBaseazure.search.documents.indexes.models.KnowledgeAgentAzureOpenAIModel->azure.search.documents.indexes.models.KnowledgeBaseAzureOpenAIModelazure.search.documents.indexes.models.KnowledgeAgentModel->azure.search.documents.indexes.models.KnowledgeBaseModelazure.search.documents.indexes.models.KnowledgeAgentModelKind->azure.search.documents.indexes.models.KnowledgeBaseModelKind
- Knowledge base clients now target
/knowledgebasesREST routes and acceptknowledge_base_nameinstead of the agent name parameter. - Replaced
azure.search.documents.indexes.models.KnowledgeAgentOutputConfigurationwithazure.search.documents.indexes.models.KnowledgeBase.output_mode. - Replaced
azure.search.documents.indexes.models.KnowledgeAgentOutputConfigurationModalitywithazure.search.documents.indexes.models.KnowledgeRetrievalOutputMode. - Removed
azure.search.documents.indexes.models.KnowledgeAgentRequestLimits; callers should apply request guardrails at the service level.
- Renamed the knowledge agent surface area to the knowledge base equivalents:
- Knowledge source parameterization updates:
- Updated
azure.search.documents.indexes.models.AzureBlobKnowledgeSourceParametersto useazure.search.documents.indexes.models.KnowledgeSourceIngestionParameters, replacing the previousidentity,embedding_model,chat_completion_model,ingestion_schedule, anddisable_image_verbalizationproperties with the newis_adls_gen2andingestion_parametersshape. - Updated
azure.search.documents.indexes.models.KnowledgeSourceReferenceto carry only the source name, moving theinclude_references,include_reference_source_data,always_query_source,max_sub_queries, andreranker_thresholdoptions onto the concrete parameter types.
- Updated
- Compression configuration cleanup:
- Removed the
default_oversamplingproperty fromazure.search.documents.indexes.models.BinaryQuantizationCompression,azure.search.documents.indexes.models.ScalarQuantizationCompression, andazure.search.documents.indexes.models.VectorSearchCompression. - Removed the
rerank_with_original_vectorsproperty fromazure.search.documents.indexes.models.BinaryQuantizationCompression,azure.search.documents.indexes.models.ScalarQuantizationCompression, andazure.search.documents.indexes.models.VectorSearchCompression.
- Removed the
- Knowledge source parameter field realignment:
- Replaced
azure.search.documents.indexes.models.SearchIndexKnowledgeSourceParameters.source_data_selectwithazure.search.documents.indexes.models.SearchIndexKnowledgeSourceParameters.source_data_fields. - Added
azure.search.documents.indexes.models.SearchIndexKnowledgeSourceParameters.search_fieldsfor field mapping. - Added optional
azure.search.documents.indexes.models.SearchIndexKnowledgeSourceParameters.semantic_configuration_name.
- Replaced
11.6.0 (2025-10-10)
Features Added
- Added
azure.search.documents.DocumentDebugInfo. - Added
azure.search.documents.QueryDebugMode. - Added
azure.search.documents.QueryResultDocumentSubscores. - Added
azure.search.documents.SingleVectorFieldResult. - Added
azure.search.documents.TextResult. - Added
azure.search.documents.VectorsDebugInfo. - Added new parameter
debuginazure.search.documents.SearchClient.search. - Added
azure.search.documents.indexes.LexicalNormalizer. - Added
azure.search.documents.indexes.LexicalNormalizerName. - Added
azure.search.documents.indexes.AnalyzeTextOptions.normalizer_name. - Added
azure.search.documents.indexes.CustomNormalizer. - Added
azure.search.documents.indexes.DocumentIntelligenceLayoutSkill. - Added
azure.search.documents.indexes.DocumentIntelligenceLayoutSkillExtractionOptions. - Added
azure.search.documents.indexes.DocumentIntelligenceLayoutSkillChunkingProperties. - Added
azure.search.documents.indexes.DocumentIntelligenceLayoutSkillChunkingUnit. - Added
azure.search.documents.indexes.DocumentIntelligenceLayoutSkillMarkdownHeaderDepth. - Added
azure.search.documents.indexes.DocumentIntelligenceLayoutSkillOutputFormat. - Added
azure.search.documents.indexes.DocumentIntelligenceLayoutSkillOutputMode. - Added
azure.search.documents.indexes.RankingOrder. - Added
azure.search.documents.indexes.RescoringOptions. - Added
azure.search.documents.indexes.SearchField.normalizer_name. - Added
azure.search.documents.indexes.SearchIndex.normalizer. - Added
azure.search.documents.indexes.SearchIndexerKnowledgeStoreParameters. - Added
azure.search.documents.indexes.VectorSearchCompressionRescoreStorageMethod. - Support for running
VectorQuerys against sub-fields of complex fields. - Added support for
2025-09-01service version.- Support for reranker boosted scores in search results and the ability to sort results on either reranker or reranker
boosted scores in
SemanticConfiguration.rankingOrder. - Support for
VectorSearchCompression.RescoringOptionsto configure how vector compression handles the original vector when indexing and how vectors are used during rescoring. - Added
SearchIndex.descriptionto provide a textual description of the index. - Support for
LexicalNormalizerwhen definingSearchIndex,SimpleField, andSearchableFieldand the ability to use it when analyzing text withSearchIndexClient.analyzeTextandSearchIndexAsyncClient.analyzeText. - Support
DocumentIntelligenceLayoutSkillskillset skill andOneLakeSearchIndexerDataSourceConnectiondata source. - Support for
QueryDebugModein searching to retrieve detailed information about search processing. Onlyvectoris supported forQueryDebugMode.
- Support for reranker boosted scores in search results and the ability to sort results on either reranker or reranker
boosted scores in
Breaking Changes
VectorSearchCompression.rerankWithOriginalVectorsandVectorSearchCompression.defaultOversamplingdon't work with2025-09-01and were replaced byVectorSearchCompression.RescoringOptions.enabledRescoringandVectorSearchCompression.RescoringOptions.defaultOversampling. If using2024-07-01continue using the old properties, otherwise if using2025-09-01use the new properties inRescoringOptions.
Other Changes
- Updated default API version to
2025-09-01.
11.7.0b1 (2025-09-05)
Features Added
- Added
azure.search.documents.models.DebugInfo. - Added
azure.search.documents.indexes.models.AzureBlobKnowledgeSource. - Added
azure.search.documents.indexes.models.AzureBlobKnowledgeSourceParameters. - Added
azure.search.documents.indexes.models.IndexerResyncBody. - Added
azure.search.documents.indexes.models.KnowledgeAgentOutputConfiguration. - Added
azure.search.documents.indexes.models.KnowledgeAgentOutputConfigurationModality. - Added
azure.search.documents.indexes.models.KnowledgeSource. - Added
azure.search.documents.indexes.models.KnowledgeSourceKind. - Added
azure.search.documents.indexes.models.KnowledgeSourceReference. - Added
azure.search.documents.indexes.models.SearchIndexKnowledgeSource. - Added
azure.search.documents.indexes.models.SearchIndexKnowledgeSourceParameters. - Removed
azure.search.documents.indexes.models.KnowledgeAgentTargetIndex. - Added
azure.search.documents.indexes.models.SearchIndex.description. - Added
azure.search.documents.agent.models.KnowledgeAgentAzureBlobActivityArguments. - Added
azure.search.documents.agent.models.KnowledgeAgentAzureBlobActivityRecord. - Added
azure.search.documents.agent.models.KnowledgeAgentAzureBlobReference. - Added
azure.search.documents.agent.models.KnowledgeAgentModelAnswerSynthesisActivityRecord. - Added
azure.search.documents.agent.models.KnowledgeAgentRetrievalActivityRecord. - Added
azure.search.documents.agent.models.KnowledgeAgentSearchIndexActivityArguments. - Added
azure.search.documents.agent.models.KnowledgeAgentSearchIndexActivityRecord. - Added
azure.search.documents.agent.models.KnowledgeAgentSearchIndexReference. - Added
azure.search.documents.agent.models.KnowledgeAgentSemanticRerankerActivityRecord. - Added
azure.search.documents.agent.models.KnowledgeSourceParams. - Added
azure.search.documents.agent.models.SearchIndexKnowledgeSourceParams. - Removed
azure.search.documents.agent.models.KnowledgeAgentAzureSearchDocReference. - Removed
azure.search.documents.agent.models.KnowledgeAgentIndexParams. - Removed
azure.search.documents.agent.models.KnowledgeAgentSearchActivityRecord. - Removed
azure.search.documents.agent.models.KnowledgeAgentSearchActivityRecordQuery. - Removed
azure.search.documents.agent.models.KnowledgeAgentSemanticRankerActivityRecord. - Added KnowledgeSource operations in
SearchIndexClient.
Other Changes
- Updated default API version to
2025-08-01-preview.
11.5.3 (2025-06-25)
Bugs Fixed
- Fixed the issue search operation did not handle 206 correctly.
11.6.0b12 (2025-05-14)
Features Added
-
Added
azure.search.documents.agent.KnowledgeAgentRetrievalClient. -
Added knowledge agents operations in
SearchIndexClient. -
Added
resyncmethod inSearchIndexerClient. -
Exposed
@search.reranker_boosted_scorein the search results. -
Added
x_ms_query_source_authorizationas a keyword argument toSearchClient.search. -
Added property
azure.search.documents.indexes.models.SearchField.permission_filter. -
Added property
azure.search.documents.indexes.models.SearchIndex.permission_filter_option. -
Added property
azure.search.documents.indexes.models.SearchIndexerDataSourceConnection.indexer_permission_options. -
Added new models:
azure.search.documents.models.QueryResultDocumentInnerHitazure.search.documents.indexes.models.ChatCompletionExtraParametersBehaviorazure.search.documents.indexes.models.ChatCompletionResponseFormatazure.search.documents.indexes.models.ChatCompletionResponseFormatTypeazure.search.documents.indexes.models.ChatCompletionResponseFormatJsonSchemaPropertiesazure.search.documents.indexes.models.ChatCompletionSchemaazure.search.documents.indexes.models.ChatCompletionSkillazure.search.documents.indexes.models.CommonModelParametersazure.search.documents.indexes.models.DocumentIntelligenceLayoutSkillChunkingPropertiesazure.search.documents.indexes.models.DocumentIntelligenceLayoutSkillChunkingUnitazure.search.documents.indexes.models.DocumentIntelligenceLayoutSkillExtractionOptionsazure.search.documents.indexes.models.DocumentIntelligenceLayoutSkillOutputFormatazure.search.documents.indexes.models.IndexerPermissionOptionazure.search.documents.indexes.models.IndexerResyncOptionazure.search.documents.indexes.models.KnowledgeAgentazure.search.documents.indexes.models.KnowledgeAgentAzureOpenAIModelazure.search.documents.indexes.models.KnowledgeAgentModelazure.search.documents.indexes.models.KnowledgeAgentModelKindazure.search.documents.indexes.models.KnowledgeAgentRequestLimitsazure.search.documents.indexes.models.KnowledgeAgentTargetIndexazure.search.documents.indexes.models.PermissionFilterazure.search.documents.indexes.models.RankingOrderazure.search.documents.indexes.models.SearchIndexPermissionFilterOption
Bugs Fixed
- Fixed the issue batching in upload_documents() did not work. #40157
Other Changes
- Updated the API version to "2025-05-01-preview"
11.6.0b11 (2025-03-25)
Bugs Fixed
- Fixed the issue that could not deserialize
document_debug_info. #40138
11.6.0b10 (2025-03-11)
Features Added
- Added
SearchIndexClient.list_index_stats_summary. - Added
SearchIndexerCache.id. - Added new model
azure.search.documents.indexes.models.IndexStatisticsSummary.
Breaking Changes
These changes do not impact the API of stable versions such as 11.5.0. Only code written against a beta version such as 11.6.0b9 may be affected.
- Renamed
azure.search.documents.indexes.models.AIStudioModelCatalogNametoazure.search.documents.indexes.models.AIFoundryModelCatalogName.
Other Changes
- Updated the API version to "2025-03-01-preview"
11.6.0b9 (2025-01-14)
Bugs Fixed
- Exposed
@search.document_debug_infoin the search results.
11.6.0b8 (2024-11-21)
Features Added
- Added
get_debug_infoin Search results.
11.6.0b7 (2024-11-18)
Features Added
- Added
SearchResourceEncryptionKey.identitysupport. - Added
query_rewrites&query_rewrites_countinSearchClient.Search. - Added
query_rewritesinVectorizableTextQuery. - Added new models:
azure.search.documents.QueryRewritesTypeazure.search.documents.indexes.AIServicesAccountIdentityazure.search.documents.indexes.AIServicesAccountKeyazure.search.documents.indexes.AzureOpenAITokenizerParametersazure.search.documents.indexes.DocumentIntelligenceLayoutSkillMarkdownHeaderDepthazure.search.documents.indexes.DocumentIntelligenceLayoutSkillOutputModeazure.search.documents.indexes.DataSourceCredentialsazure.search.documents.indexes.DocumentIntelligenceLayoutSkillazure.search.documents.indexes.IndexerCurrentStateazure.search.documents.indexes.MarkdownHeaderDepthazure.search.documents.indexes.MarkdownParsingSubmodeazure.search.documents.indexes.RescoringOptionsazure.search.documents.indexes.ResourceCounterazure.search.documents.indexes.SkillNamesazure.search.documents.indexes.SplitSkillEncoderModelNameazure.search.documents.indexes.SplitSkillUnitazure.search.documents.indexes.VectorSearchCompressionKindazure.search.documents.indexes.VectorSearchCompressionRescoreStorageMethod
Other Changes
- Updated the API version to "2024-1-01-preview"
11.5.2 (2024-10-31)
Bugs Fixed
- Fixed the issue that
encryptionKeywas lost during serialization. #37521
11.6.0b6 (2024-10-08)
Bugs Fixed
- Fixed the issue that
encryptionKeyinSearchIndexerwas lost during serialization. #37521
11.6.0b5 (2024-09-19)
Features Added
SearchIndexClient.get_search_clientinherits the API version.
Bugs Fixed
- Fixed the issue that we missed ODATA header when using Entra ID auth.
- Fixed the issue that
encryptionKeywas lost during serialization. #37251
Other Changes
- Updated the API version to "2024-09-01-preview"
Breaking changes
These changes do not impact the API of stable versions such as 11.5.0. Only code written against a beta version such as 11.6.0b4 may be affected.
- Below models were renamed
azure.search.documents.indexes.models.SearchIndexerIndexProjections->azure.search.documents.indexes.models.SearchIndexerIndexProjectionazure.search.documents.indexes.models.LineEnding->azure.search.documents.indexes.models.OrcLineEndingazure.search.documents.indexes.models.ScalarQuantizationCompressionConfiguration->azure.search.documents.indexes.models.ScalarQuantizationCompressionazure.search.documents.indexes.models.VectorSearchCompressionConfiguration->azure.search.documents.indexes.models.VectorSearchCompressionazure.search.documents.indexes.models.VectorSearchCompressionTargetDataType->azure.search.documents.indexes.models.VectorSearchCompressionTarget
- Below properties were renamed
azure.search.documents.indexes.models.AzureMachineLearningVectorizer.name->azure.search.documents.indexes.models.AzureMachineLearningVectorizer.vectorizer_nameazure.search.documents.indexes.models.AzureOpenAIEmbeddingSkill.deployment_id->azure.search.documents.indexes.models.AzureOpenAIEmbeddingSkill.deployment_nameazure.search.documents.indexes.models.AzureOpenAIEmbeddingSkill.resource_uri->azure.search.documents.indexes.models.AzureOpenAIEmbeddingSkill.resource_urlazure.search.documents.indexes.models.AzureOpenAIVectorizer.azure_open_ai_parameters->azure.search.documents.indexes.models.AzureOpenAIVectorizer.parametersazure.search.documents.indexes.models.AzureOpenAIVectorizer.name->azure.search.documents.indexes.models.AzureOpenAIVectorizer.vectorizer_nameazure.search.documents.indexes.models.SearchIndexerDataUserAssignedIdentity.user_assigned_identity->azure.search.documents.indexes.models.SearchIndexerDataUserAssignedIdentity.resource_idazure.search.documents.indexes.models.VectorSearchProfile.compression_configuration_name->azure.search.documents.indexes.models.VectorSearchProfile.compression_nameazure.search.documents.indexes.models.VectorSearchProfile.vectorizer->azure.search.documents.indexes.models.VectorSearchProfile.vectorizer_nameazure.search.documents.indexes.models.VectorSearchVectorizer.name->azure.search.documents.indexes.models.VectorSearchVectorizer.vectorizer_name
11.5.1 (2024-07-30)
Other Changes
- Improved type checks.
11.5.0 (2024-07-16)
Breaking Changes
These changes do not impact the API of stable versions such as 11.4.0. Only code written against a beta version such as 11.6.0b4 may be affected.
-
Below models are renamed
azure.search.documents.indexes.models.SearchIndexerIndexProjections->azure.search.documents.indexes.models.SearchIndexerIndexProjectionazure.search.documents.indexes.models.LineEnding->azure.search.documents.indexes.models.OrcLineEndingazure.search.documents.indexes.models.ScalarQuantizationCompressionConfiguration->azure.search.documents.indexes.models.ScalarQuantizationCompressionazure.search.documents.indexes.models.VectorSearchCompressionConfiguration->azure.search.documents.indexes.models.VectorSearchCompressionazure.search.documents.indexes.models.VectorSearchCompressionTargetDataType->azure.search.documents.indexes.models.VectorSearchCompressionTarget
-
Below models do not exist in this release
azure.search.documents.models.QueryLanguageazure.search.documents.models.QuerySpellerTypeazure.search.documents.models.QueryDebugModeazure.search.documents.models.HybridCountAndFacetModeazure.search.documents.models.HybridSearchazure.search.documents.models.SearchScoreThresholdazure.search.documents.models.VectorSimilarityThresholdazure.search.documents.models.VectorThresholdazure.search.documents.models.VectorThresholdKindazure.search.documents.models.VectorizableImageBinaryQueryazure.search.documents.models.VectorizableImageUrlQueryazure.search.documents.indexes.models.SearchAliasazure.search.documents.indexes.models.AIServicesVisionParametersazure.search.documents.indexes.models.AIServicesVisionVectorizerazure.search.documents.indexes.models.AIStudioModelCatalogNameazure.search.documents.indexes.models.AzureMachineLearningParametersazure.search.documents.indexes.models.AzureMachineLearningSkillazure.search.documents.indexes.models.AzureMachineLearningVectorizerazure.search.documents.indexes.models.CustomVectorizerazure.search.documents.indexes.models.CustomNormalizerazure.search.documents.indexes.models.DocumentKeysOrIdsazure.search.documents.indexes.models.IndexingModeazure.search.documents.indexes.models.LexicalNormalizerazure.search.documents.indexes.models.LexicalNormalizerNameazure.search.documents.indexes.models.NativeBlobSoftDeleteDeletionDetectionPolicyazure.search.documents.indexes.models.SearchIndexerCacheazure.search.documents.indexes.models.SkillNamesazure.search.documents.indexes.models.VisionVectorizeSkill
-
SearchAlias operations do not exist in this release
-
SearchIndexerClient.reset_documentsdoes not exist in this release -
SearchIndexerClient.reset_skillsdoes not exist in this release -
Below properties do not exist
azure.search.documents.indexes.models.SearchIndexerDataSourceConnection.identityazure.search.documents.indexes.models.SearchIndex.normalizersazure.search.documents.indexes.models.SearchField.normalizer_name
-
Below parameters do not exist
SearchClient.search.debugSearchClient.search.hybrid_searchSearchClient.search.query_languageSearchClient.search.query_spellerSearchClient.search.semantic_fieldsSearchIndexerClient.create_or_update_indexer.skip_indexer_reset_requirement_for_cacheSearchIndexerClient.create_or_update_data_source_connection.skip_indexer_reset_requirement_for_cacheSearchIndexerClient.create_or_update_skillset.skip_indexer_reset_requirement_for_cacheSearchIndexerClient.create_or_update_indexer.disable_cache_reprocessing_change_detectionSearchIndexerClient.create_or_update_skillset.disable_cache_reprocessing_change_detection
Other Changes
- Updated default API version to
2024-07-01.
11.6.0b4 (2024-05-07)
Features Added
- Added new models:
azure.search.documents.models.HybridCountAndFacetModeazure.search.documents.models.HybridSearchazure.search.documents.models.SearchScoreThresholdazure.search.documents.models.VectorSimilarityThresholdazure.search.documents.models.VectorThresholdazure.search.documents.models.VectorThresholdKindazure.search.documents.models.VectorizableImageBinaryQueryazure.search.documents.models.VectorizableImageUrlQueryazure.search.documents.indexes.models.AIServicesVisionParametersazure.search.documents.indexes.models.AIServicesVisionVectorizerazure.search.documents.indexes.models.AIStudioModelCatalogNameazure.search.documents.indexes.models.AzureMachineLearningParametersazure.search.documents.indexes.models.AzureMachineLearningVectorizerazure.search.documents.indexes.models.AzureOpenAIModelNameazure.search.documents.indexes.models.VectorEncodingFormatazure.search.documents.indexes.models.VisionVectorizeSkill
- Added
hybrid_searchsupport forSearchClient.searchmethod. - Updated default API version to
2024-05-01-preview.
Bugs Fixed
- Fixed the bug that SearchClient failed when both answer count and answer threshold applied.
11.6.0b3 (2024-04-09)
Features Added
- Added
IndexerExecutionEnvironment,IndexingMode,LineEnding,NativeBlobSoftDeleteDeletionDetectionPolicy,ScalarQuantizationCompressionConfiguration,ScalarQuantizationParameters,SearchServiceCounters,SearchServiceLimits,SearchServiceStatistics,VectorSearchCompressionConfiguration&VectorSearchCompressionTargetDataType. - Added
storedinSearchField.
11.6.0b2 (2024-03-05)
Breaking Changes
SearchIndexerSkillset,SearchField,SearchIndex,AnalyzeTextOptions,SearchResourceEncryptionKey,SynonymMap,SearchIndexerDataSourceConnectionare no longer subclasses of_serialization.Model.
Bugs Fixed
- Fixed the issue that
SearchIndexerSkillset,SearchField,SearchIndex,AnalyzeTextOptions,SearchResourceEncryptionKey,SynonymMap,SearchIndexerDataSourceConnectioncould not be serialized andas_dictdid not work. - Fixed the issue that
contextwas missing forEntityRecognitionSkillandSentimentSkill. #34623
Other Changes
- Default to API version
V2024_03_01_PREVIEW
11.6.0b1 (2024-01-31)
Features Added
- Added back
semantic_queryforSearchmethod. - Added back alias operations to
SearchIndexClient. - Added back
AzureOpenAIEmbeddingSkill,AzureOpenAIParametersandAzureOpenAIVectorizer. - Added back
query_language,query_speller,semantic_fieldsanddebugforSearchmethod. - Added
send_requestmethod forSearchClient&SearchIndexClientto run a network request using the client's existing pipeline.
Bugs Fixed
- Fixed the issue that we added unexpected
retrievableproperty forSearchField.
Other Changes
- Python 3.7 is no longer supported. Please use Python version 3.8 or later.
11.4.0 (2023-10-13)
Features Added
- Added new models:
VectorSearchAlgorithmMetricIndexProjectionModeSearchIndexerIndexProjectionsSearchIndexerIndexProjectionSelectorSearchIndexerIndexProjectionsParametersBlobIndexerDataToExtractBlobIndexerImageActionBlobIndexerParsingModeCharFilterNameCustomEntityCustomEntityAliasDataChangeDetectionPolicyDataDeletionDetectionPolicyDefaultCognitiveServicesAccountHighWaterMarkChangeDetectionPolicyHnswAlgorithmConfigurationIndexerExecutionResultIndexingParametersIndexingParametersConfigurationIndexingScheduleLexicalAnalyzerNameLexicalTokenizerNamePIIDetectionSkillPIIDetectionSkillMaskingModeScoringProfileSemanticSearch
- Added
index_projectionssupport forSearchIndexerSkillset
Breaking Changes
These changes do not impact the API of stable versions such as 11.3.0. Only code written against a beta version such as 11.4.0b11 may be affected.
- Renamed
AnswerResulttoQueryAnswerResultandCaptionResulttoQueryCaptionResult. - Renamed
SemanticErrorHandlingtoSemanticErrorMode. - Renamed
RawVectorQuerytoVectorizedQuery. - Renamed
ExhaustiveKnnVectorSearchAlgorithmConfigurationtoExhaustiveKnnAlgorithmConfiguration. - Renamed
PrioritizedFieldstoSemanticPrioritizedFields. - Renamed
query_caption_highlighttoquery_caption_highlight_enabled. query_languageandquery_spellerare not available forSearchmethod in this stable release.aliasoperations are not available in this stable release.AzureOpenAIEmbeddingSkill,AzureOpenAIParametersandAzureOpenAIVectorizerare not available in 11.4.0.- Renamed
vector_search_profiletovector_search_profile_nameinSearchField. - Renamed
SemanticSettingstoSemanticSearch.
Other Changes
- Used API version "2023-11-01".
11.4.0b11 (2023-10-11)
Features Added
- Added
vector_filter_modesupport forSearchmethod. - Exposed
VectorizableTextQueryinazure.search.document.models.
11.4.0b10 (2023-10-10)
Breaking Changes
These changes do not impact the API of stable versions such as 11.3.0. Only code written against a beta version such as 11.4.0b6 may be affected.
- Renamed
vector_search_configurationtovector_search_profileinSearchField. - Renamed
vectorstovector_queriesinSearchmethod. - Renamed
azure.search.documents.models.Vectortoazure.search.documents.models.VectorQuery. - Stopped supporting api version
V2023_07_01_PREVIEWanymore.
Other Changes
- Default to use API version
V2023_10_01_PREVIEW
11.4.0b9 (2023-09-12)
Bugs Fixed
- Fixed the bug that list type of
order_bywas not correctly handled. #31837
11.4.0b8 (2023-08-08)
Features Added
- Exposed
HnswVectorSearchAlgorithmConfiguration
Breaking Changes
These changes do not impact the API of stable versions such as 11.3.0. Only code written against a beta version such as 11.4.0b6 may be affected.
- Instead of using
VectorSearchAlgorithmConfiguration, now you need to use concrete types likeHnswVectorSearchAlgorithmConfiguration.
11.4.0b7 (2023-08-08)
Features Added
- Added multi-vector search support. Now instead of passing in
vector,top_kandvector_fields, search method acceptsvectorswhich is a list ofVectorobject.
Breaking Changes
These changes do not impact the API of stable versions such as 11.3.0. Only code written against a beta version such as 11.4.0b6 may be affected.
- Stopped supporting
vector,top_kandvector_fieldsinSearchClient.searchmethod.
11.4.0b6 (2023-07-11)
Features Added
- Added
top_ksupport forVectorSearch.
11.4.0b5 (2023-07-11)
Features Added
- Exposed
azure.search.documents.models.Vector.
11.4.0b4 (2023-07-11)
Features Added
- Added
VectorSearchsupport.
Breaking Changes
- Deprecated
SentimentSkillV1andEntityRecognitionSkillV1.
11.4.0b3 (2023-02-07)
Features Added
- Added the semantic reranker score and captions on
SearchResult.(thanks to @LucasVascovici for the contribution)
11.4.0b2 (2022-11-08)
Features Added
- Enabled
OcrSkillandImageAnalysisSkill
Other Changes
- Added Python 3.11 support.
11.4.0b1 (2022-09-08)
Features Added
- Added support to create, update and delete aliases via the
SearchIndexClient.
11.3.0 (2022-09-06)
Note
- Some of the features that were available in the
11.3.0b8version are not available in this GA. They would be available in the upcoming beta release.
Features Added
- Added support for other national clouds.
- Added support for TokenCredential
Bugs Fixed
- Fixed issue where async
searchcall would fail with a 403 error when retrieving large number of documents.
Other Changes
- Python 3.6 is no longer supported. Please use Python version 3.7 or later.
11.2.2 (2022-04-14)
Bugs Fixed
- Fixes a bug allowing users to set keys for cognitive service skills using the API. Exposes
DefaultCognitiveServicesAccountandCognitiveServicesAccountKey
11.3.0b8 (2022-03-08)
Features Added
- Added support to create, update and delete aliases via the
SearchIndexClient.
11.3.0b7 (2022-02-08)
Features Added
- Support for
AzureMachineLearningSkill. The AML skill allows you to extend AI enrichment with a custom Azure Machine Learning (AML) model. Once an AML model is trained and deployed, an AML skill integrates it into AI enrichment.
Other Changes
- Python 2.7 is no longer supported. Please use Python version 3.6 or later.
11.2.1 (2022-01-10)
Minor updates.
11.3.0b6 (2021-11-19)
Features Added
- Added properties to
SearchClient.search:semantic_configuration_name - Added properties to
SearchIndex:semantic_settings - Added models:
PrioritizedFields,SemanticConfiguration,SemanticField,SemanticSettings - Added new values to model
QueryLanguage
11.3.0b5 (2021-11-09)
Features Added
- Added properties to
SearchClient.search:session_id,scoring_statistics. - Added properties to
SearchIndexerDataSourceConnection:identity,encryption_key. - Added
selectproperty to the followingSearchIndexClientoperations:get_synonym_maps,list_indexes. - Added
selectproperty to the followingSearchIndexersClientoperations:get_data_source_connections,get_indexers,get_skillsets. - Added operations to
SearchIndexerClient:reset_skills,reset_documents. - Added model:
DocumentKeysOrIds
11.3.0b4 (2021-10-05)
Features Added
- Added properties to
SearchClient:query_answer,query_answer_count,query_caption,query_caption_highlightandsemantic_fields.
Breaking Changes
- Renamed
SearchClient.spellertoSearchClient.query_speller. - Renamed model
SpellertoQuerySpellerType. - Renamed model
AnswerstoQueryAnswerType. - Removed keyword arguments from
SearchClient:answersandcaptions. SentimentSkill,EntityRecognitionSkill: added client-side validation to prevent sending unsupported parameters.- Renamed property
ignore_reset_requirementstoskip_indexer_reset_requirement_for_cache.
11.3.0b3 (2021-09-08)
Features Added
- Added new models:
azure.search.documents.models.QueryCaptionTypeazure.search.documents.models.CaptionResultazure.search.documents.indexes.models.CustomEntityLookupSkillLanguageazure.search.documents.indexes.models.EntityRecognitionSkillVersionazure.search.documents.indexes.models.LexicalNormalizerNameazure.search.documents.indexes.models.PIIDetectionSkillazure.search.documents.indexes.models.PIIDetectionSkillMaskingModeazure.search.documents.indexes.models.SearchIndexerCacheazure.search.documents.indexes.models.SearchIndexerDataIdentityazure.search.documents.indexes.models.SearchIndexerDataNoneIdentityazure.search.documents.indexes.models.SearchIndexerDataUserAssignedIdentityazure.search.documents.indexes.models.SentimentSkillVersion
- Added
normalizer_nameproperty toAnalyzeTextOptionsmodel.
Breaking Changes
- Removed:
azure.search.documents.indexes.models.SentimentSkillV3azure.search.documents.indexes.models.EntityRecognitionSkillV3
- Renamed:
SearchField.normalizerrenamed toSearchField.normalizer_name.
Other Changes
SentimentSkillandEntityRecognitionSkillcan now be created by specifying theskill_versionkeyword argument with aSentimentSkillVersionorEntityRecognitionSkillVersion, respectively. The default behavior ifskill_versionis not specified is to create a version 1 skill.
11.3.0b2 (2021-08-10)
Features Added
- Added new skills:
SentimentSkillV3,EntityLinkingSkill,EntityRecognitionSkillV3
11.3.0b1 (2021-07-07)
Features Added
- Added AAD support
- Added support for semantic search
- Added normalizer support
11.2.0 (2021-06-08)
This version will be the last version to officially support Python 3.5, future versions will require Python 2.7 or Python 3.6+.
New features
- Added support for knowledge store #18461
- Added new data source type ADLS gen2 #16852
11.2.0b3 (2021-05-11)
New features
- Added support for knowledge store #18461
11.2.0b2 (2021-04-13)
New features
- Added support for semantic search #17638
11.2.0b1 (2021-04-06)
New features
- Added new data source type ADLS gen2 #16852
- Added normalizer support #17579
11.1.0 (2021-02-10)
Breaking Changes
IndexDocumentsBatchdoes not supportenqueue_actionany longer.enqueue_actionstakes a single action too.max_retriesofSearchIndexingBufferedSenderis renamed tomax_retries_per_actionSearchClientdoes not supportget_search_indexing_buffered_sender
11.1.0b4 (2020-11-10)
Features
- Added
get_search_indexing_buffered_sendersupport forSearchClient - Added
initial_batch_action_countsupport forSearchIndexingBufferedSender - Added
max_retriessupport forSearchIndexingBufferedSender
11.1.0b3 (2020-10-06)
Breaking Changes
- Renamed
SearchIndexDocumentBatchingClienttoSearchIndexingBufferedSender - Renamed
SearchIndexDocumentBatchingClient.add_upload_actionstoSearchIndexingBufferedSender.upload_documents - Renamed
SearchIndexDocumentBatchingClient.add_delete_actionstoSearchIndexingBufferedSender.delete_documents - Renamed
SearchIndexDocumentBatchingClient.add_merge_actionstoSearchIndexingBufferedSender.merge_documents - Renamed
SearchIndexDocumentBatchingClient.add_merge_or_upload_actionstoSearchIndexingBufferedSender.merge_or_upload_documents - Stopped supporting
windowkwargs forSearchIndexingBufferedSender - Splitted kwarg
hookintoon_new,on_progress,on_error,on_removeforSearchIndexingBufferedSender
Features
- Added
auto_flush_intervalsupport forSearchIndexingBufferedSender
11.1.0b2 (2020-09-08)
Features
- Added
azure.search.documents.RequestEntityTooLargeError Flushmethod inBatchClientnow will not return until all actions are done
Breaking Changes
- Removed
succeeded_actions&failed_actionsfromBatchClient - Removed
get_index_document_batching_clientfromSearchClient
11.1.0b1 (2020-08-11)
Features
- new
SearchIndexDocumentBatchingClient
SearchIndexDocumentBatchingClient supports handling document indexing actions in an automatic way. It can trigger the flush method automatically based on pending tasks and idle time.
Fixes
- Doc & Sample fixes
11.0.0 (2020-07-07)
Features
-
Exposed more models:
- BM25SimilarityAlgorithm
- ClassicSimilarityAlgorithm
- EdgeNGramTokenFilterSide
- EntityCategory
- EntityRecognitionSkillLanguage
- FieldMapping
- FieldMappingFunction
- ImageAnalysisSkillLanguage
- ImageDetail
- IndexerExecutionStatus
- IndexerStatus
- KeyPhraseExtractionSkillLanguage
- MicrosoftStemmingTokenizerLanguage
- MicrosoftTokenizerLanguage
- OcrSkillLanguage
- PhoneticEncoder
- ScoringFunctionAggregation
- ScoringFunctionInterpolation
1.0.0b4 (2020-06-09)
Breaking Changes
-
Reorganized
SearchServiceClientintoSearchIndexClient&SearchIndexerClient#11507 -
Split searchindex.json and searchservice.json models and operations into separate namespaces #11508
-
Renamed
edmtoSearchFieldDataType#11511 -
Now Search Synonym Map creation/update returns a model #11514
-
Renaming #11565
- SearchIndexerDataSource -> SearchIndexerDataSourceConnection
- SearchField.SynonymMaps -> SearchField.SynonymMapNames
- SearchField.Analyzer -> SearchField.AnalyzerName
- SearchField.IndexAnalyzer -> SearchField.IndexAnalyzerName
- SearchField.SearchAnalyzer -> SearchField.SearchAnalyzerName
- SearchableField.SynonymMaps -> SearchableField.SynonymMapNames
- SearchableField.Analyzer -> SearchableField.AnalyzerName
- SearchableField.IndexAnalyzer -> SearchableField.IndexAnalyzerName
- SearchableField.SearchAnalyzer -> SearchableField.SearchAnalyzerName
- Similarity -> SimilarityAlgorithm
- Suggester -> SearchSuggester
- PathHierarchyTokenizerV2 -> PathHierarchyTokenizer
-
Renamed DataSource methods to DataSourceConnection #11693
-
Autocomplete & suggest methods now takes arguments search_text & suggester_name rather than query objects #11747
-
Create_or_updates methods does not support partial updates #11800
-
Renamed AnalyzeRequest to AnalyzeTextOptions #11800
-
Renamed Batch methods #11800
1.0.0b3 (2020-05-04)
Features
- Add support for synonym maps operations #10830
- Add support for skillset operations #10832
- Add support of indexers operation #10836
- Add helpers for defining searchindex fields #10833
Breaking Changes
SearchIndexClientrenamed toSearchClient
1.0.0b2 (2020-04-07)
Features
- Added index service client #10324
- Accepted an array of RegexFlags for PatternAnalyzer and PatternTokenizer #10409
Breaking Changes
- Removed
SearchApiKeyCredentialand now usingAzureKeyCredentialfrom azure.core.credentials as key credential
1.0.0b1 (2020-03-10)
First release of Azure Search SDK for Python
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file azure_search_documents-12.0.0.tar.gz.
File metadata
- Download URL: azure_search_documents-12.0.0.tar.gz
- Upload date:
- Size: 386.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e6d73ec0ed1623083435b757e34324db65d72d4e09cca061a59fc7e90c8ddbc
|
|
| MD5 |
2a1ee66e1349f121ba51b09f79303f5c
|
|
| BLAKE2b-256 |
59dcbb4db263381aa5b29414e280a8535a343d877a3831a501ef39332174c85c
|
File details
Details for the file azure_search_documents-12.0.0-py3-none-any.whl.
File metadata
- Download URL: azure_search_documents-12.0.0-py3-none-any.whl
- Upload date:
- Size: 352.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d88114e4179cd753845711042380a4571e7faa8619addf5e017928ebe37fc0d1
|
|
| MD5 |
2a15a1cc8c209893594a46d950bfea14
|
|
| BLAKE2b-256 |
a4b14869a064dbb79fb4ecac684de51a8f8f7a93a315f3f9cc4bf8a65cc413cd
|