Tokenization changes when a trailing space is added [LUCENE-6782]
Open
affects-version:5.3
legacy-jira-priority:Minor
module:analysis
type:bug
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
Elasticsearch-analysis-kuromoji user found a puzzling thing.
If you tokenize たてまつ by itself you get a single token たてまつる.
However, if you add a trailing space to the string, you get two tokens たてる and まつ.
---
Migrated from [LUCENE-6782](https://issues.apache.org/jira/browse/LUCENE-6782) by Jun Ohtani (@johtani)
Contributor guide
Research direction
No files or tests are named. Reproduce tokenization for “たてまつ” and the same input with a trailing space in the Kuromoji analysis path, then trace why the results differ; done means the behavior is understood and the intended tokenization is fixed with coverage for both inputs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100