Hi,

 

for decorating, use the class AnalyzerWrapper. This has protected methods to 
override: wrapComponents(), wrapReader(). getWrappedAnalyzer() must return the 
analyzer you want to wrap.

 

See ShingleAnalyzerWrapper as an example: http://goo.gl/4DcBQS

 

Uwe

 

-----

Uwe Schindler

H.-H.-Meier-Allee 63, D-28213 Bremen

http://www.thetaphi.de <http://www.thetaphi.de/> 

eMail: [email protected]

 

From: DVHV Sekhar [mailto:[email protected]] 
Sent: Monday, August 25, 2014 9:11 AM
To: [email protected]; [email protected]
Subject: org.apache.lucene.analysis.Analyzer

 

Please add public method Analyzer#createComponents(Analyzer analyzer, String 
fieldName,

      Reader reader) to org.apache.lucene.analysis.Analyzer

 

This required to decorate any existing analyzers. Or make existing 
createComponents method as public.

 

Thanks,

Sekhar 

 

Reply via email to