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: Added note on locale ------------------------------------------------------------------------------ <field column="price" formatStyle="number" /> }}} + By default, !NumberFormat uses the system's default locale to parse the given string. If you want to specify a different locale then you can specify it as an attribute. e.g. + {{{ + <field column="price" formatStyle="number" locale="de-DE" /> + }}} + ==== Attributes ==== !NumberFormatTransformer applies only on the fields with an attribute 'formatStyle' . * '''`formatStyle`''' : The format used for parsing this field The value of the attribute must be one of (number|percent|integer|currency). This uses the semantics of java [http://java.sun.com/j2se/1.4.2/docs/api/java/text/NumberFormat.html NumberFormat]. - * '''`sourceColName`''' : The column on which the !NumberFormat is to be applied. If this is absent source and target are same + * '''`sourceColName`''' : The column on which the !NumberFormat is to be applied. If this is absent, source and target are same. + * '''`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.
