lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Njal Karevoll (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-3417) DictionaryCompoundWordTokenFilter does not properly add tokens from the end compound word.
Date Tue, 06 Sep 2011 20:13:09 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-3417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13098313#comment-13098313
] 

Njal Karevoll commented on LUCENE-3417:
---------------------------------------

The above patch is trivial to backport for 3.3/3.4.

It is similar to LUCENE-3038, but is not duplicated by LUCENE-3022, which deals with issues
surrounding the interpretation of onlyLongestMatch.

> 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
>         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.
> Example:
> Dictionary: {"ab", "cd", "ef"}
> word: "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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message