[
https://issues.apache.org/jira/browse/LUCENE-4877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steve Rowe updated LUCENE-4877:
-------------------------------
Attachment: LUCENE-4877-steve-minor-fixes.patch
Patch fixing these minor nits:
{quote}
TestMappingCharFilterFactory's factory could switch to being instantiated using
the charFilterFactory() method
EdgeNgramTokenizerFactory's gram size constants are pulled from
EdgeNgramTokenFilter instead of EdgeNgramTokenizer
LimitTokenCountFilterFactory's maxTokenCount param should be required; this is
a pre-existing problem though
PatternTokenizerFactory's group param should use the getInt() method with a
default of -1.
{quote}
Actually, I was wrong about LimitTokenCountFilterFactory - it already has a
test in place to insure reporting of missing required maxTokenCount param.
Committing shortly.
> Fix analyzer factories to throw exception when arguments are invalid
> --------------------------------------------------------------------
>
> Key: LUCENE-4877
> URL: https://issues.apache.org/jira/browse/LUCENE-4877
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/analysis
> Reporter: Robert Muir
> Attachments: LUCENE-4877_one_solution_prototype.patch,
> LUCENE-4877.patch, LUCENE-4877.patch, LUCENE-4877.patch,
> LUCENE-4877-steve-minor-fixes.patch
>
>
> Currently if someone typos an argument "someParamater=xyz" instead of
> someParameter=xyz, they get no exception and sometimes incorrect behavior.
> It would be way better if these factories threw exception on unknown params,
> e.g. they removed the args they used and checked they were empty at the end.
--
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: [email protected]
For additional commands, e-mail: [email protected]