LowerCaseFilter.preserveOriginal [LUCENE-5620]
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
Following closely the model of #6500 (which worked on ASCIIFoldingFilter), this patch adds the ability to preserve the original token to LowerCaseFilter. This is useful if you want an all-lowercase search term to match without regard to case, while search terms with uppercase letters match in a case-sensitive manner.
---
Migrated from [LUCENE-5620](https://issues.apache.org/jira/browse/LUCENE-5620) by Michael Sokolov (@msokolov), updated Apr 27 2014
Attachments: [LUCENE-5620.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-5620/LUCENE-5620.patch) (versions: 2)
Contributor guide
Research direction
Start by reading LowerCaseFilter and comparing it with the ASCIIFoldingFilter work referenced in #6500; the attached LUCENE-5620.patch is also available for context. Done means LowerCaseFilter can preserve the original token so lowercase terms match case-insensitively while uppercase terms retain case-sensitive matching.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- search
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100