I'm having trouble making a custom DIH transformer in solr 1.4.
I compiled the "General TrimTransformer" into a jar. (just copy/paste 
sample code from http://wiki.apache.org/solr/DIHCustomTransformer)
I placed the jar along with the dataimporthandler jar in solr/lib (same 
directory as the jetty jar)
Then I added to my DIH data-config.xml file: 
transformer="DateFormatTransformer, RegexTransformer, 
com.chheng.dih.transformers.TrimTransformer"
Now I get this exception when I try running the import.
org.apache.solr.handler.dataimport.DataImportHandlerException: java.lang.NoSuchMethodException: com.chheng.dih.transformers.TrimTransformer.transformRow(java.util.Map) at org.apache.solr.handler.dataimport.EntityProcessorWrapper.loadTransformers(EntityProcessorWrapper.java:120)
I noticed the exception lists 
TrimTransformer.transformRow(java.util.Map) but the abstract Transformer 
class defines a two parameter method: transformRow(Map<String, Object> 
row, Context context)?

--
Tommy Chheng
Programmer and UC Irvine Graduate Student
Twitter @tommychheng
http://tommy.chheng.com

  • DataImportHandlerExcep... Tommy Chheng

Reply via email to