Repository navigation
PYTHON-6296 Ensure that not specifying the name and type when creating a search index will result in the name being "default" and the type being "search" - #3254
Open
blink1073 wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues with the added regression coverage for default search index names and types.
No open issues 🎉
What changed in this PR
Adds regression coverage for server-default search index names and types, implementing the prose test from mongodb/specifications#1861 without changing driver code.
Changes:
- Adds an async test that creates a search index without specifying its name or type.
- Verifies the returned name is
"default"and, once the index is queryable, its type is"search". - Includes the generated synchronous equivalent and index cleanup.
| File | Description |
|---|---|
| test/test_index_management.py | Generated synchronous test for search index defaults. |
| test/asynchronous/test_index_management.py | Async prose test verifying default index name and type. |
Review effort: Balanced
sleepyStick
approved these changes
Nov 25, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PYTHON-6296
Changes in this PR
Adds the search index prose test from mongodb/specifications#1861, which asserts that creating a search index without a name or type yields the server defaults, name "default" and type "search".
TestSearchIndexProse.test_case_9to the async index management tests and to the sync copy generated byjust synchro.Test Plan
test-search-index-helpersEvergreen task runs the search index tests on an Atlas Search cluster in both suites. It passed with this patch applied (task logs).just typingandjust lint-manualpass.Checklist
Checklist for Author
Checklist for Reviewer