[
https://issues.apache.org/jira/browse/LUCENE-2100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13034544#comment-13034544
]
Esmond Pitt commented on LUCENE-2100:
-------------------------------------
Steve
Thanks. Maybe you could have a look at this. How do you suggest I recode it?
I wrote this 7 years ago and cannot now remember anything about it. Quite
possibly the entire thing is now obsolete, but I've been carting it around
since before Lucene was even at Apache. All I've ever done is adjust the
version number.
==========================================================
public class PorterStemAnalyzer extends StandardAnalyzer
{
/**
* Construct a new instance of PorterStemAnalyzer.
*/
public PorterStemAnalyzer()
{
super(Version.LUCENE_30);
}
@Override
public final TokenStream tokenStream(String fieldName, Reader
reader)
{
return new PorterStemFilter(super.tokenStream(fieldName,
reader));
}
}
============================================================
EJP
> Make contrib analyzers final
> ----------------------------
>
> Key: LUCENE-2100
> URL: https://issues.apache.org/jira/browse/LUCENE-2100
> Project: Lucene - Java
> Issue Type: Improvement
> Components: modules/analysis
> Affects Versions: 1.9, 2.0.0, 2.1, 2.2, 2.3, 2.3.1, 2.3.2, 2.4, 2.4.1,
> 2.9, 2.9.1, 3.0
> Reporter: Simon Willnauer
> Assignee: Simon Willnauer
> Priority: Minor
> Fix For: 4.0
>
> Attachments: LUCENE-2100.patch, LUCENE-2100.patch
>
>
> The analyzers in contrib/analyzers should all be marked final. None of the
> Analyzers should ever be subclassed - users should build their own analyzers
> if a different combination of filters and Tokenizers is desired.
--
This message is automatically generated by JIRA.
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]