From d0cc2a0ed2ea5e32f74a26602a22d27d72b45f92 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Mon, 21 Apr 2025 15:29:11 +0000 Subject: [PATCH] feat(ts/classes.lucene.adapter): Expose luceneWildcardToRegex method to allow external usage and enhance regex transformation capabilities. --- changelog.md | 5 +++++ ts/00_commitinfo_data.ts | 2 +- ts/classes.lucene.adapter.ts | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 3f34dc4..9543a1a 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # Changelog +## 2025-04-21 - 5.11.0 - feat(ts/classes.lucene.adapter) +Expose luceneWildcardToRegex method to allow external usage and enhance regex transformation capabilities. + +- Changed luceneWildcardToRegex from private to public in ts/classes.lucene.adapter.ts. + ## 2025-04-21 - 5.10.0 - feat(search) Improve search functionality: update documentation, refine Lucene query transformation, and add advanced search tests diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index c3ce613..03b5d98 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartdata', - version: '5.10.0', + version: '5.11.0', description: 'An advanced library for NoSQL data organization and manipulation using TypeScript with support for MongoDB, data validation, collections, and custom data types.' } diff --git a/ts/classes.lucene.adapter.ts b/ts/classes.lucene.adapter.ts index 2d16721..8436071 100644 --- a/ts/classes.lucene.adapter.ts +++ b/ts/classes.lucene.adapter.ts @@ -640,7 +640,7 @@ export class LuceneToMongoTransformer { /** * Convert Lucene wildcards to MongoDB regex patterns */ - private luceneWildcardToRegex(wildcardPattern: string): string { + public luceneWildcardToRegex(wildcardPattern: string): string { // Replace Lucene wildcards with regex equivalents // * => .* // ? => .