Skip to content

Support Unicode-aware regular expressions for alphabets - #56

Merged
dblock merged 1 commit into
mongoid:masterfrom
dblock:dblock/non-latin
Oct 17, 2026
Merged

dblock merged 1 commit into
mongoid:masterfrom
dblock:dblock/non-latin

Conversation

@dblock

@dblock dblock commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Accept a Regexp for alphabet alongside existing string allowlists, preserving the ASCII default. Unicode script/property expressions such as /\p{Han}/ and /[\p{L}\p{M}\p{N}]/ support whole scripts without enumerating characters. Match each normalized/lowercased character and retain word separators independently.

Cover Han characters beyond the original example, multilingual letters/numbers/combining marks, separators, explicit string allowlists, unchanged default behavior, and invalid option types. Document rebuilding after alphabet changes and distinguish character-ngram matching from language-aware segmentation.

Fixes #14. Depends on #51.

Prepared by an AI on behalf of @dblock.

@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Danger Report

No issues found.

View run

@dblock dblock changed the title Document and cover Chinese full-text searches Support Unicode-aware regular expressions for alphabets Oct 17, 2026
@dblock
dblock force-pushed the dblock/non-latin branch 2 times, most recently from d9d4306 to 1c72036 Compare October 17, 2026 03:28
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dblock
dblock merged commit 6cdc7fa into mongoid:master Oct 17, 2026
12 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.

Not support for non-English Languages?

1 participant