2. Introduction
Imports data from RDBMS/XML into Solr using
configuration
Import works across multiple tables
Data is denormalized
Supports full and incremental update
Allows to plugin components
Is a contrib module
5. Configuration Steps
Configure the DIH in SolrConfig.xml
<requestHandler name="/dataimport"
class="org.apache.solr.handler.dataimport.DataImportHandler">
<lst name="defaults">
<str name="config">/path/to/data-config.xml</str>
</lst>
</requestHandler>
Configure the datasource and data-config.xml
Add the dependencies to the lib
directory
7. Transformers
Modifies the value of a field or creates a new
field altogether
Transformers can be chained
Some built-in transformer:
RegexTransformer
DateFormatTransformer
TemplateTransformer
HTMLStripTransformer
8. Custom Transformer
Write your own transformer for custom
processing before adding the row to Solr
Extend Transform and override
transformRow()