lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Willnauer (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-4822) Add PatternKeywordTokenFilter to marks keywords based on regular expressions
Date Mon, 11 Mar 2013 12:19:14 GMT

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

Simon Willnauer updated LUCENE-4822:
------------------------------------

    Attachment: LUCENE-4822.patch

here is a patch (pretty big though). I made KeywordMarkerFilter an abstract base class and
added two subclasses PatternKeywordMarkerFilter and SetKeywordMarkerFilter. I also updated
the factory to support both based on given arguments. I think this can be useful for others
as well if they need to make keyword decisions based on more complex logic.
                
> Add PatternKeywordTokenFilter to marks keywords based on regular expressions
> ----------------------------------------------------------------------------
>
>                 Key: LUCENE-4822
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4822
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/analysis
>    Affects Versions: 4.2
>            Reporter: Simon Willnauer
>            Priority: Minor
>             Fix For: 5.0, 4.3
>
>         Attachments: LUCENE-4822.patch
>
>
> today we need to pass in an explicit set of terms that we want to marks as keywords.
It might make sense to allow patterns as well to prevent certain suffixes etc. to be keyworded.

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