lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <>
Subject [jira] [Updated] (LUCENE-3236) Make LowerCaseFilter and StopFilter keyword aware, similar to PorterStemFilter
Date Thu, 09 May 2013 23:05:47 GMT


Uwe Schindler updated LUCENE-3236:

    Fix Version/s:     (was: 4.3)
> Make LowerCaseFilter and StopFilter keyword aware, similar to PorterStemFilter
> ------------------------------------------------------------------------------
>                 Key: LUCENE-3236
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/analysis
>    Affects Versions: 4.0-ALPHA
>         Environment: N/A
>            Reporter: Sujit Pal
>            Priority: Minor
>              Labels: analysis
>             Fix For: 4.4
>         Attachments: lucene-3236-patch.diff
> PorterStemFilter has functionality to detect if a term has been marked as a "keyword"
by the KeywordMarkerFilter (KeywordAttribute.isKeyword() == true), and if so, skip stemming.
> The suggestion is to have the same functionality in other filters where it is applicable.
I think it may be particularly applicable to the LowerCaseFilter (ie if it is a keyword, don't
mess with the case), and StopFilter (if it is a keyword, then don't filter it out even if
it looks like a stop word).
> Backward compatibility is maintained (in both cases) by adding a new constructor which
takes an additional boolean parameter ignoreKeyword. The current constructor will call this
new constructor with ignoreKeyword = false.
> Patches are attached (for LowerCaseFilter and StopFilter).
> I have verified that the analysis JUnit tests run against the updated code, ie, backward
compatibility is maintained.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message