Skip to content

Add CreateIndexOptions support to DefaultIndexOperations#5172

Open
seonghyeoklee wants to merge 1 commit intospring-projects:mainfrom
seonghyeoklee:gh-4422
Open

Add CreateIndexOptions support to DefaultIndexOperations#5172
seonghyeoklee wants to merge 1 commit intospring-projects:mainfrom
seonghyeoklee:gh-4422

Conversation

@seonghyeoklee
Copy link

Summary

  • Add CreateIndexOptions parameter to DefaultIndexOperations and DefaultReactiveIndexOperations, allowing users to configure options such as commitQuorum when creating indexes.
  • Change internal index creation from MongoCollection#createIndex() to MongoCollection#createIndexes(List<IndexModel>, CreateIndexOptions) to support passing CreateIndexOptions through to the driver.
  • Update unit tests for both sync and reactive index operations to reflect the new API usage, and add dedicated Expose ability to set CreateIndexCommitQuorum in DefaultIndexOperations #4422 tests verifying CreateIndexOptions is correctly passed to the driver.

Closes #4422

Test plan

  • DefaultIndexOperationsUnitTests - existing tests updated + new shouldPassCreateIndexOptionsToDriver test
  • DefaultReactiveIndexOperationsUnitTests - existing tests updated + new shouldPassCreateIndexOptionsToDriver test

🤖 Generated with Claude Code

Closes spring-projectsgh-4422

Signed-off-by: seonghyeoklee <dltjdgur327@gmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 3, 2026
@mp911de mp911de self-assigned this Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose ability to set CreateIndexCommitQuorum in DefaultIndexOperations

3 participants