Skip to content

Pattern replace keywords - #16489

Draft
xabbu42 wants to merge 6 commits into
apache:mainfrom
xabbu42:pattern-replace-keywords
Draft

Pattern replace keywords#16489
xabbu42 wants to merge 6 commits into
apache:mainfrom
xabbu42:pattern-replace-keywords

Conversation

@xabbu42

@xabbu42 xabbu42 commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Description

Add an ignoreKeywords flag to PatternReplaceFilter similar to WordDelimiterGraphFilter. We use PatternReplaceFilter for some custom spelling normalization and minimal stemming and would like to use the existing mechanism to protect keywords.

Disclaimers

This pull request was created using aider and Claude Sonnet 4.

We don't use Lucene directly (I plan to do a follow up pull request for elasticsearch) so I could not yet check this changes besides the generated new tests. Please tell me if anything is missing.

xabbu42 and others added 6 commits August 5, 2026 10:03
Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
…ds parameter

Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
…tion

Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
@xabbu42
xabbu42 marked this pull request as draft August 5, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant