Skip to content

OAK-12506 Add a way to normalize string operands when filtering and ordering - #3263

Open
cdamioli wants to merge 1 commit into
trunkfrom
OAK-12506
Open

cdamioli wants to merge 1 commit into
trunkfrom
OAK-12506

Conversation

@cdamioli

@cdamioli cdamioli commented Nov 3, 2026

Copy link
Copy Markdown

This PR introduces a new normalize/rep:normalize query function, similar to the same Jackrabbit function, useful for sorting and filtering on non-ASCII strings.
The implementation is inspired by lower / upper functions and is based on the Lucene's ASCIIFoldingFilter. However, in Jackrabbit, there was a direct dependency on Lucene, so we could have a direct reference to ASCIIFoldingFilter. Here in Oak, there's no such dependency at oak-core level, so I had to copy the class. Don't hesitate to correct me if I'm wrong.

Please note that it's my very first Oak PR, and that I didn't exercise my Jackrabbit committership in years, so please tell me everything wrong :)

@sonarqubecloud

sonarqubecloud Bot commented Nov 3, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
10.8% Coverage on New Code (required ≥ 80%)
34.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

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.

1 participant