Dear Wiki user,

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

The following page has been changed by ShalinMangar:
http://wiki.apache.org/solr/DataImportHandler

The comment on the change is:
fixed typos

------------------------------------------------------------------------------
  == Transformer ==
  Every row that is fetched from the DB can be either consumed directly or it 
can be massaged to create a totally new set of fields or it can even return 
more than one row of data. The configuration must be done on an entity level as 
follows.
  {{{
- <entity name="foo" tranfromer="com.foo.Foo" ... />
+ <entity name="foo" transformer="com.foo.Foo" ... />
  }}}
  
  the class 'Foo' must implement the interface 
`org.apache.solr.hander.dataimport.Transformer` The interface has ony one 
method.
@@ -182, +182 @@

  
  The Context is the interface that provides the contextual information 
necessary to process the data. 
  
- The confiuration has a 'flexible' schema. It lets the user provide arbitrary 
attributes in an 'entity' tag  and 'field' tags. The tool reads the data and 
hands it over to the implementation class as it is. If the 'Transformer' needs 
extra information to be provided on a per entity/field basis it can do so. The 
values can be obtained from the Context. 
+ The configuration has a 'flexible' schema. It lets the user provide arbitrary 
attributes in an 'entity' tag  and 'field' tags. The tool reads the data and 
hands it over to the implementation class as it is. If the 'Transformer' needs 
extra information to be provided on a per entity/field basis it can do so. The 
values can be obtained from the Context. 
  
  There is an inbuilt transformer called '!RegExpTransfromer' provided with the 
tool itself. It helps in extracting values from fields (from db) using Regular 
Expressions.
  

Reply via email to