Skip to content

[Search] azure-search-documents 12.1.0b1 preview release for API version 2026-05-01-preview#46933

Open
hizixin wants to merge 5 commits into
mainfrom
search/2026-05-01-preview
Open

[Search] azure-search-documents 12.1.0b1 preview release for API version 2026-05-01-preview#46933
hizixin wants to merge 5 commits into
mainfrom
search/2026-05-01-preview

Conversation

@hizixin
Copy link
Copy Markdown
Member

@hizixin hizixin commented May 15, 2026

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

hizixin and others added 3 commits May 10, 2026 19:26
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 15, 2026 22:09
@hizixin hizixin requested review from a team as code owners May 15, 2026 22:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Prepares azure-search-documents for the 12.1.0b1 preview release targeting API version 2026-05-01-preview, updating default API versions, adding new/updated preview surfaces (including search query/debug features and indexer operations), and expanding test coverage with preview-gated capability checks.

Changes:

  • Bump package version to 12.1.0b1 and update defaults/metadata to 2026-05-01-preview.
  • Add/extend preview API surfaces across Search, Indexes, and KnowledgeBases clients (sync + async), plus generated API-version validation.
  • Add capability-gated unit tests and update internal testing/release reference docs.

Reviewed changes

Copilot reviewed 81 out of 82 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
sdk/search/azure-search-documents/tsp-location.yaml Update spec commit pointer
sdk/search/azure-search-documents/tests/test_search_indexing_buffered_sender.py Reformat buffered sender tests
sdk/search/azure-search-documents/tests/test_search_indexing_buffered_sender_live.py Reformat live buffered sender test
sdk/search/azure-search-documents/tests/test_search_indexing_buffered_sender_async.py Reformat async buffered sender tests
sdk/search/azure-search-documents/tests/test_search_indexer_models.py Add pylint disables for test file
sdk/search/azure-search-documents/tests/test_search_indexer_client.py New unit tests for preview indexer ops
sdk/search/azure-search-documents/tests/test_search_indexer_client_data_sources_live.py Reformat live data sources assertions
sdk/search/azure-search-documents/tests/test_search_indexer_client_data_sources_live_async.py Reformat async live loop formatting
sdk/search/azure-search-documents/tests/test_search_indexer_client_async.py New async unit tests for preview indexer ops
sdk/search/azure-search-documents/tests/test_search_index_model.py Expand docstring for preview gating
sdk/search/azure-search-documents/tests/test_search_index_client.py New unit tests for index list paging kwargs
sdk/search/azure-search-documents/tests/test_search_index_client_synonym_maps_live_async.py Reformat async synonym map tests
sdk/search/azure-search-documents/tests/test_search_index_client_knowledge_base_configurations_live.py Reformat knowledge base live test signature
sdk/search/azure-search-documents/tests/test_search_index_client_indexes_live_async.py Reformat async index live test
sdk/search/azure-search-documents/tests/test_search_index_client_async.py New async unit tests for index paging kwargs
sdk/search/azure-search-documents/tests/test_search_client.py Add preview-gated search parameter/debug tests
sdk/search/azure-search-documents/tests/test_search_client_search_live.py Reformat live search paging assertion
sdk/search/azure-search-documents/tests/test_search_client_search_live_async.py Reformat async live search assertions/calls
sdk/search/azure-search-documents/tests/test_search_client_index_documents_live.py Reformat live indexing calls
sdk/search/azure-search-documents/tests/test_search_client_index_documents_live_async.py Reformat async live indexing calls
sdk/search/azure-search-documents/tests/test_search_client_async.py Add async preview-gated search/debug tests
sdk/search/azure-search-documents/tests/test_knowledge_base_retrieval_client.py New unit test for KB audience translation
sdk/search/azure-search-documents/tests/test_knowledge_base_retrieval_client_async.py New async unit test for KB audience translation
sdk/search/azure-search-documents/tests/_search_helpers.py Reformat helper builders/utilities
sdk/search/azure-search-documents/tests/_search_helpers_async.py Reformat async helper utilities
sdk/search/azure-search-documents/tests/_capabilities.py Add capability gating registry/logic
sdk/search/azure-search-documents/search/models/_patch.py New generated patch hook (search.models)
sdk/search/azure-search-documents/search/models/_models.py New generated model (search.models)
sdk/search/azure-search-documents/search/models/_enums.py New generated enum (search.models)
sdk/search/azure-search-documents/search/models/init.py New generated exports (search.models)
sdk/search/azure-search-documents/search/init.py New top-level search namespace package
sdk/search/azure-search-documents/sdk_packaging.toml Remove legacy packaging config
sdk/search/azure-search-documents/pyproject.toml Mark as Beta; add packaging section
sdk/search/azure-search-documents/mypy.ini Adjust mypy settings for validation module
sdk/search/azure-search-documents/CHANGELOG.md Add 12.1.0b1 entry and default API note
sdk/search/azure-search-documents/azure/search/documents/models/_patch.py Reorder imports in models patch
sdk/search/azure-search-documents/azure/search/documents/models/_enums.py Add new query/hybrid/vector enums
sdk/search/azure-search-documents/azure/search/documents/models/init.py Export new models/enums publicly
sdk/search/azure-search-documents/azure/search/documents/knowledgebases/models/_enums.py Add KB enums for new preview features
sdk/search/azure-search-documents/azure/search/documents/knowledgebases/models/init.py Export new KB models/enums publicly
sdk/search/azure-search-documents/azure/search/documents/knowledgebases/aio/_patch.py Update KB aio patch docs/default version
sdk/search/azure-search-documents/azure/search/documents/knowledgebases/aio/_operations/_operations.py Add api version validation + new header param
sdk/search/azure-search-documents/azure/search/documents/knowledgebases/aio/_configuration.py Default KB aio api version update
sdk/search/azure-search-documents/azure/search/documents/knowledgebases/aio/_client.py Update KB aio client docs
sdk/search/azure-search-documents/azure/search/documents/knowledgebases/_utils/model_base.py Minor generated model_base cleanup
sdk/search/azure-search-documents/azure/search/documents/knowledgebases/_patch.py Update KB patch docs/default version
sdk/search/azure-search-documents/azure/search/documents/knowledgebases/_operations/_operations.py Add validation + new header param
sdk/search/azure-search-documents/azure/search/documents/knowledgebases/_configuration.py Default KB api version update
sdk/search/azure-search-documents/azure/search/documents/knowledgebases/_client.py Update KB client docs
sdk/search/azure-search-documents/azure/search/documents/indexes/models/_enums.py Add many new indexer/skill enums
sdk/search/azure-search-documents/azure/search/documents/indexes/models/init.py Export new indexer/skill models/enums
sdk/search/azure-search-documents/azure/search/documents/indexes/aio/_patch.py Update indexes aio patch docs/default
sdk/search/azure-search-documents/azure/search/documents/indexes/aio/_operations/_patch.py Add new paging kwargs + indexer ops
sdk/search/azure-search-documents/azure/search/documents/indexes/aio/_configuration.py Default indexes aio api version update
sdk/search/azure-search-documents/azure/search/documents/indexes/aio/_client.py Update indexes aio client docs
sdk/search/azure-search-documents/azure/search/documents/indexes/_utils/model_base.py Minor generated model_base cleanup
sdk/search/azure-search-documents/azure/search/documents/indexes/_patch.py Update indexes patch docs/default
sdk/search/azure-search-documents/azure/search/documents/indexes/_operations/_patch.py Add new paging kwargs + indexer ops
sdk/search/azure-search-documents/azure/search/documents/indexes/_configuration.py Default indexes api version update
sdk/search/azure-search-documents/azure/search/documents/indexes/_client.py Update indexes client docs
sdk/search/azure-search-documents/azure/search/documents/aio/_patch.py Update SearchClient aio patch docs/default
sdk/search/azure-search-documents/azure/search/documents/aio/_operations/_patch.py Add new search kwargs + debug accessor
sdk/search/azure-search-documents/azure/search/documents/aio/_operations/_operations.py Add validation + new query/header params
sdk/search/azure-search-documents/azure/search/documents/aio/_configuration.py Default SearchClient aio api version update
sdk/search/azure-search-documents/azure/search/documents/aio/_client.py Update SearchClient aio client docs
sdk/search/azure-search-documents/azure/search/documents/_version.py Bump version constant
sdk/search/azure-search-documents/azure/search/documents/_validation.py Add generated API-version validation decorator
sdk/search/azure-search-documents/azure/search/documents/_utils/model_base.py Minor generated model_base cleanup
sdk/search/azure-search-documents/azure/search/documents/_patch.py Add preview ApiVersion; update default
sdk/search/azure-search-documents/azure/search/documents/_operations/_patch.py Add new search kwargs + debug accessor
sdk/search/azure-search-documents/azure/search/documents/_operations/_operations.py Add validation + new query/header params
sdk/search/azure-search-documents/azure/search/documents/_configuration.py Default SearchClient api version update
sdk/search/azure-search-documents/azure/search/documents/_client.py Update SearchClient client docs
sdk/search/azure-search-documents/apiview-properties.json Map new/updated public API symbols
sdk/search/azure-search-documents/.github/skills/azure-search-documents/references/testing.md Update test conventions + preview gating
sdk/search/azure-search-documents/.github/skills/azure-search-documents/references/release.md Update changelog drafting conventions
sdk/search/azure-search-documents/_metadata.json Update apiVersion metadata

Comment on lines +10 to +18
from typing import Any, Mapping, Optional, overload

from ...azure.search.documents._utils.model_base import Model as _Model, rest_field


class SharePointConnectorAppRegistration(_Model):
"""Configures a SharePoint connector app registration for the index, enabling document-level
permissions from SharePoint.

"azure.search.documents.indexes.models.SentimentSkillV3": "Search.SentimentSkillV3",
"azure.search.documents.indexes.models.ServiceIndexersRuntime": "Search.ServiceIndexersRuntime",
"azure.search.documents.indexes.models.ShaperSkill": "Search.ShaperSkill",
"search.models.SharePointConnectorAppRegistration": "Search.SharePointConnectorAppRegistration",
Comment on lines +40 to +44
if _index_with_default(method_added_on) > _index_with_default(client_api_version):
raise ValueError(
f"'{func.__name__}' is not available in API version "
f"{client_api_version}. Pass service API version {method_added_on} or newer to your client."
)
Comment on lines +355 to +361
def get_debug_info(self) -> _models.DebugInfo:
"""Return the debug information for the query.

:return: the debug information for the query
:rtype: ~azure.search.documents.models.DebugInfo
"""
return cast(_models.DebugInfo, self._first_iterator_instance().get_debug_info())
Comment on lines +172 to +178
async def get_debug_info(self) -> _models.DebugInfo:
"""Return the debug information for the query.

:return: the debug information for the query
:rtype: ~azure.search.documents.models.DebugInfo
"""
return cast(_models.DebugInfo, await self._first_iterator_instance().get_debug_info())
Comment on lines +3 to +16
## 12.1.0b1

### Features Added

### Breaking Changes
- Below enum members are added for API version support
- `azure.search.documents.ApiVersion.V2026_05_01_PREVIEW`

### Bugs Fixed
- Below properties are added for service counters
- `azure.search.documents.indexes.models.SearchServiceCounters.knowledge_base_counter`
- `azure.search.documents.indexes.models.SearchServiceCounters.knowledge_source_counter`

### Other Changes

- Updated default API version to `2026-05-01-preview`.
@@ -1,3 +1,4 @@
# pylint: disable=line-too-long,useless-suppression
Comment on lines +61 to 64
:keyword api_version: The API version to use for this operation. Known values are
"2026-05-01-preview" and None. Default value is "2026-05-01-preview". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
Comment on lines 67 to +71
[tool.azure-sdk-conda]
in_bundle = false

[packaging]
auto_update = false
Comment on lines +28 to +36
def _empty_async_pager(*_args, **_kwargs):
pager = mock.MagicMock(spec=AsyncItemPaged)

async def _aiter():
for _ in ():
yield _

pager.__aiter__ = lambda self: _aiter()
return pager
hizixin and others added 2 commits May 15, 2026 23:07
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…meters

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@hizixin hizixin force-pushed the search/2026-05-01-preview branch from 3354f99 to d38dd3c Compare May 16, 2026 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

2 participants