Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "DataImportHandler" page has been changed by FergusMcMenemie. The comment on this change is: improved templatetransformer description. http://wiki.apache.org/solr/DataImportHandler?action=diff&rev1=240&rev2=241 -------------------------------------------------- * '''`locale`''' : The locale to be used for parsing the strings. If this is absent, the system's default locale is used. It must be specified as language-country. For example en-US. === TemplateTransformer === - Uses the powerful template engine of !DataImportHandler to construct/modify a field value. + Can be used to overwrite or modify any existing Solr field or to create new Solr fields. The value assigned to the field is based on a static template string, which can contain DIH variables. If a template string contains placeholders or variables they must be defined when the transformer is being evaluated. An undefined variable causes the entire template instruction to be ignored. eg: {{{ <entity name="e" transformer="TemplateTransformer" ..> @@ -626, +626 @@ '''Attributes''' - * '''`template`''' : The template string. In the above example there are two placeholders '${e.name}' and '${eparent.surname}' . Both the values must be present when it is being evaluated. Else it will not be evaluated. + * '''`template`''' : The template string. In the above example there are two placeholders '${e.name}' and '${eparent.surname}' . Both the values must be present when it is being evaluated. === HTMLStripTransformer === <!> [[Solr1.4]]
