lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-3039) all words are protected after the first detected
Date Wed, 20 Apr 2011 19:07:05 GMT

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

Uwe Schindler commented on LUCENE-3039:
---------------------------------------

I found the bug:
The problem is in analysis.jsp (3.x version), line 227: there should be a clearAttributes()
first.
Reason is: In early stages, cached tokens dont have the Keyword Attribute, so the following
copyTo() does not overwrite all attributes.
Same applies for AnalysisReqHandlerBase. The depreacted AnalysisReqHandler does not has this
problem as it does not debug all filters and caches no Tokens.
Patch is coming...

> all words are protected after the first detected
> ------------------------------------------------
>
>                 Key: LUCENE-3039
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3039
>             Project: Lucene - Java
>          Issue Type: Bug
>    Affects Versions: 3.1
>            Reporter: Yonik Seeley
>
> LUCENE-2901 broke protected words by only setting and never clearing (that change should
have been accompanied by offsetting code to clear the attribute somewhere).

--
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