lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Trivial Update of "DIHCustomTransformer" by FrankWesemann
Date Fri, 03 Sep 2010 21:09:10 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "DIHCustomTransformer" page has been changed by FrankWesemann.
The comment on this change is: Added the Tip to extend Transformer.
http://wiki.apache.org/solr/DIHCustomTransformer?action=diff&rev1=3&rev2=4

--------------------------------------------------

  	}
  }
  }}}
- No need to extend any class. Just write any class which has a method named transformRow
with the above signature and DataImportHandler will instantiate it and call the transformRow
method using reflection. You will specify it in your data-config.xml as follows:
+ No need to extend any class. Just write any class which has a method named transformRow
with the above signature and DataImportHandler will instantiate it and call the transformRow
method using reflection.
+ But of course you may extend the abstract class org.apache.solr.handler.dataimport.Transformer.
+  You will specify it in your data-config.xml as follows:
  {{{
  <entity name="artist" query="..." transformer="foo.TrimTransformer">
  	<field column="artistName" />

Mime
View raw message