You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Drew Farris (JIRA)" <ji...@apache.org> on 2011/01/30 18:55:43 UTC

[jira] Updated: (LUCENE-2901) KeywordMarkerFilter resets keyword attribute state to false for tokens not in protwords.txt

     [ https://issues.apache.org/jira/browse/LUCENE-2901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Drew Farris updated LUCENE-2901:
--------------------------------

    Attachment: LUCENE-2901.patch

> KeywordMarkerFilter resets keyword attribute state to false for tokens not in protwords.txt
> -------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-2901
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2901
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Analysis
>    Affects Versions: 3.1
>            Reporter: Drew Farris
>            Priority: Minor
>         Attachments: LUCENE-2901.patch
>
>
> KeywordMarkerFilter sets true or false for the KeywordAttribute on all tokens. This erases previous state established further up the filter chain, for example in the case where a custom filter wants to prevent a token from being stemmed. 
> If a token is already marked as a keyword (KeywordAttribute.isKeyword() == true), perhaps the KeywordMarkerFilterFactory should not re-set the state to false.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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