Skip to content

Add tests for Multi-language support for Full-Text Search#44254

Merged
bambriz merged 16 commits intoAzure:mainfrom
bambriz:vector-multi-language
Dec 20, 2025
Merged

Add tests for Multi-language support for Full-Text Search#44254
bambriz merged 16 commits intoAzure:mainfrom
bambriz:vector-multi-language

Conversation

@bambriz
Copy link
Member

@bambriz bambriz commented Dec 4, 2025

Description

This PR adds tests for multi-language support for Full-text search in Python SDK. Currently This feature is not yet available in the regions of the test pipeline so they will be skipped for now.

Currently the feature is not yet available for our testing pipelines so this Issue 44478 was made as a reminder to unskip them once it does become available.

Copilot AI review requested due to automatic review settings December 4, 2025 00:35
@bambriz bambriz requested a review from a team as a code owner December 4, 2025 00:35
@github-actions github-actions bot added the Cosmos label Dec 4, 2025
Copy link
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

This PR adds comprehensive test coverage for multi-language support in the Azure Cosmos DB Python SDK's full-text search feature. The changes introduce tests that validate full-text policies with multiple supported languages (English, French, German, Italian, Portuguese variants, and Spanish) across both synchronous and asynchronous APIs.

Key changes include:

  • Addition of centralized test data structures (supported_languages, language_abstracts, search_terms) to support multi-language testing
  • Six new test methods in the sync version and seven in the async version to validate various multi-language scenarios
  • Tests covering language replacement, fallback behavior, mismatched configurations, and multi-path multi-language policies

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
sdk/cosmos/azure-cosmos/tests/test_full_text_policy.py Adds 6 new synchronous test methods and shared test data dictionaries for testing multi-language full-text search support, including language replacement, fallback, and multi-path scenarios
sdk/cosmos/azure-cosmos/tests/test_full_text_policy_async.py Adds 7 new asynchronous test methods and shared test data dictionaries, mirroring sync tests plus an additional test for unsupported language validation

@bambriz bambriz changed the title Add tests for Multi-language support for Vector Search Add tests for Multi-language support for Full-Text Search Dec 11, 2025
@bambriz
Copy link
Member Author

bambriz commented Dec 16, 2025

/azp run python - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@kushagraThapar kushagraThapar left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @bambriz

@bambriz bambriz merged commit 253bebd into Azure:main Dec 20, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants