tokenizer supports preserving delimiters [LUCENE-9308]
Open
legacy-jira-priority:Minor
module:analysis
type:enhancement
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
currently there s no way to preserve the delimiter in tokenizer, because the basic tokenizer like CharTokenizer ignore them.
this s to make the basic tokenizer more customizable
e.g. "mac_book_pro" -> [mac_, book_, pro]
---
Migrated from [LUCENE-9308](https://issues.apache.org/jira/browse/LUCENE-9308) by yin Lin
Contributor guide
Research direction
Start from Lucene’s basic tokenizer and trace how it currently discards delimiters, using the mac_book_pro example as the expected behavior. Done means the tokenizer can be customized to preserve delimiters and produces the illustrated token sequence, with coverage for that behavior.
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
- 35/100