org.apache.solr.handler.dataimport

Class TemplateTransformer



  • public class TemplateTransformer
    extends Transformer

    A Transformer which can put values into a column by resolving an expression containing other columns

    For example:
    <field column="name" template="${e.lastName}, ${e.firstName} ${e.middleName}" /> will produce the name by combining values from lastName, firstName and middleName fields as given in the template attribute.

    Refer to http://wiki.apache.org/solr/DataImportHandler for more details.

    This API is experimental and may change in the future.

    Since:
    solr 1.3