Skip to content

fix(search-documents): restore indexes model compat exports#47876

Draft
mattgotteiner wants to merge 4 commits into
mainfrom
fix/search-documents-export-regressions
Draft

fix(search-documents): restore indexes model compat exports#47876
mattgotteiner wants to merge 4 commits into
mainfrom
fix/search-documents-export-regressions

Conversation

@mattgotteiner

@mattgotteiner mattgotteiner commented Jul 6, 2026

Copy link
Copy Markdown
Member

Summary

  • restore KnowledgeRetrievalOutputMode and KnowledgeRetrievalReasoningEffort as public re-exports from azure.search.documents.indexes.models
  • restore supported public SearchIndex.serialize() / SearchIndex.deserialize() round-trip helpers through the package patch layer
  • add targeted regression coverage plus the changelog and API surface snapshot updates

Testing

  • python -m pytest --noconftest tests/test_search_index_model.py -q

Fixes #47871
Fixes #47872
Fixes #47873

Restore the preview compatibility exports for KnowledgeRetrievalOutputMode and KnowledgeRetrievalReasoningEffort from azure.search.documents.indexes.models, and add back supported SearchIndex serialize/deserialize round-trip helpers via the package patch layer.

Add targeted regression coverage, changelog notes, and the API surface snapshot update.

Fixes #47871
Fixes #47872
Fixes #47873

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
mattgotteiner and others added 3 commits July 6, 2026 14:31
The isolated CI package test jobs do not expose a top-level tests package, so importing tests._capabilities caused collection-time ModuleNotFoundError across the PR matrix. Use the package-local _capabilities import instead.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Inline the public SearchIndex serialize/deserialize helpers onto SearchIndex instead of a private mixin to avoid the remaining docs/build CI failure while preserving the compatibility surface.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use docs-safe compatibility wrapper types for KnowledgeRetrievalOutputMode and KnowledgeRetrievalReasoningEffort so Sphinx does not index the same knowledgebases symbols twice, and add the required docstrings for the SearchIndex round-trip helpers.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Untriaged

1 participant