Write your own analyzer, which calls the appropriate Filter in the method "tokenStream". In the method "tokenStream" you can define, how the input should be analyzed and parsed.

Your analyzer must extend the abstract class Analyzer. The easiest way is to create a new class (Analyzer), which is a simple copy of the StandardAnalyzer, and expand it with the appropriate Filter in the method "tokenStream".

Hope this helps...

Thomas




[EMAIL PROTECTED] wrote:
Hi,

Lucene provides a PorterStemFilter which uses PorterStemmer.

Is there any way I can use a PorterStemFilter ( by extending it or
something) which uses porter2 stemming algorithm not the original porter
algorithm.

I know , this is possible using snowball filter but for some reason I
don't want to use it.

Thanks

Sandeep



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to