Skip to content

MONGOCRYPT-946: improve error message when using "textPreview"#1195

Merged
kevinAlbs merged 1 commit into
mongodb:masterfrom
kevinAlbs:error-improvement
Jun 24, 2026
Merged

MONGOCRYPT-946: improve error message when using "textPreview"#1195
kevinAlbs merged 1 commit into
mongodb:masterfrom
kevinAlbs:error-improvement

Conversation

@kevinAlbs

@kevinAlbs kevinAlbs commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #1184 to give an actionable error when the removed "textPreview" algorithm is specified.

Before:

unsupported algorithm string "textPreview"

After:

Algorithm 'textPreview' is deprecated, please use 'string'

Background & Motivation

Relatedly, prefixPreview and suffixPreview query types were restored #1191. The textPreview algorithm is deliberately not restored. The rename does not prevent use of prefixPreview and suffixPreview on pre-9.0 servers.

@kevinAlbs kevinAlbs requested a review from mdb-ad June 24, 2026 18:30
@kevinAlbs kevinAlbs requested a review from a team as a code owner June 24, 2026 18:30
@pr-issue-creator pr-issue-creator Bot changed the title MONGOCRYPT-XXX improve error message when using "textPreview" MONGOCRYPT-946: improve error message when using "textPreview" Jun 24, 2026
@kevinAlbs kevinAlbs merged commit 906010b into mongodb:master Jun 24, 2026
43 of 44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants