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 JamesDyer:
http://wiki.apache.org/solr/DataImportHandler?action=diff&rev1=327&rev2=328

Comment:
SOLR-4095: NumberFormatTransformer & DateFormatTransformer default to the Root 
Locale

  
   * '''`dateTimeFormat`''' : The format used for parsing this field. This must 
comply with the syntax of java 
[[http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html|SimpleDateFormat]].
   * '''`sourceColName`''' : The column on which the dateFormat is to be 
applied. If this is absent source and target are same
-  * '''`locale`''' : The locale to use for date transformations. If no locale 
attribute is specified, then the default one on the system is used.
+  * '''`locale`''' : The locale to use for date transformations (optional). If 
no Locale is specified, Solr4.1 and later defaults to the ROOT Locale (Versions 
prior to Solr4.1 use the current machine's default Locale.)
  
  The above field definition is used in the RSS example to parse the publish 
date of the RSS feed item.
  
@@ -640, +640 @@

  {{{
  <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.
+ By default, !NumberFormat uses the system's default locale to parse the given 
string. 
+ Optionally, specify the Locale to use as shown (see java.util.Locale javadoc 
for more information):
  
  {{{
  <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.
-  * '''`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.
+  * '''`locale`''' : The locale to be used for parsing the strings. If no 
Locale is specified, Solr4.1 and later defaults to the ROOT Locale (Versions 
prior to Solr4.1 use the current machine's default Locale.)  
  
  === TemplateTransformer ===
  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:

Reply via email to