[
https://issues.apache.org/jira/browse/LUCENE-3417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Muir resolved LUCENE-3417.
---------------------------------
Resolution: Fixed
Fix Version/s: 4.0
3.5
Assignee: Robert Muir
Thanks Njal!
> DictionaryCompoundWordTokenFilter does not properly add tokens from the end
> compound word.
> ------------------------------------------------------------------------------------------
>
> Key: LUCENE-3417
> URL: https://issues.apache.org/jira/browse/LUCENE-3417
> Project: Lucene - Java
> Issue Type: Bug
> Components: modules/analysis
> Affects Versions: 3.3, 4.0
> Reporter: Njal Karevoll
> Assignee: Robert Muir
> Fix For: 3.5, 4.0
>
> Attachments: LUCENE-3417.patch
>
> Original Estimate: 5m
> Remaining Estimate: 5m
>
> Due to an off-by-one error, a subword placed at the end of a compound word
> will not get a token added to the token stream.
> For example (from the unit test in the attached patch):
> Dictionary: {"ab", "cd", "ef"}
> Input: "abcdef"
> Created tokens: {"abcdef", "ab", "cd"}
> Expected tokens: {"abcdef", "ab", "cd", "ef"}
> Additionally, it could produce tokens that were shorter than the
> minSubwordSize due to another off-by-one error. For example (again, from the
> attached patch):
> Dictionary: {"abc", "d", "efg"}
> Minimum subword length: 2
> Input: "abcdefg"
> Created tokens: {"abcdef", "abc", "d", "efg"}
> Expected tokens: {"abcdef", "abc", "efg"}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]