apache / apache/lucene

Tokenization changes when a trailing space is added [LUCENE-6782]

Open
#7,840 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.