lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ahmet Arslan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-5559) Argument validation for TokenFilters having numeric constructor parameter(s)
Date Mon, 07 Apr 2014 00:50:15 GMT

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

Ahmet Arslan updated LUCENE-5559:
---------------------------------

    Attachment: LUCENE-5559.patch

This patch added checks for overlooked TokenFilters : CapitalizationFilter and CodepointCountFilter.

> Argument validation for TokenFilters having numeric constructor parameter(s)
> ----------------------------------------------------------------------------
>
>                 Key: LUCENE-5559
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5559
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/analysis
>    Affects Versions: 4.7
>            Reporter: Ahmet Arslan
>            Priority: Minor
>             Fix For: 4.8, 5.0
>
>         Attachments: LUCENE-5559.patch, LUCENE-5559.patch, LUCENE-5559.patch, LUCENE-5559.patch,
LUCENE-5559.patch
>
>
> Some TokenFilters have numeric arguments in their constructors. They should throw {{IllegalArgumentException}}
for negative or meaningless values. 
> Here is some examples that demonstrates invalid/meaningless arguments :
> {code:xml}
>  <filter class="solr.LimitTokenCountFilterFactory" maxTokenCount="-10" />
> {code}
> {code:xml}
>  <filter class="solr.LengthFilterFactory" min="-5" max="-1" />
> {code}
> {code:xml}
>  <filter class="solr.LimitTokenPositionFilterFactory" maxTokenPosition="-3" />
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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


Mime
View raw message