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=328&rev2=329 The attributes are: * '''`basePath`''': (optional) The base path relative to which the value is evaluated if it is not absolute - * '''`encoding`''': (optional) If the files are to be read in an encoding that is not same as the platform encoding + * '''`encoding`''': (optional) With Solr4.1 and later, this defaults to UTF-8. (Prior to Solr4.1, the current machine's default encoding was used) === FieldReaderDataSource === <!> [[Solr1.4]] @@ -993, +993 @@ This can be useful for users who have a DB field containing XML and wish to use a nested XPathEntityProcessor to process the fields contents. The datasouce may be configured as follows {{{ - <dataSource name="f" type="FieldReaderDataSource" /> + <dataSource name="f" type="FieldReaderDataSource" encoding="UTF-8" /> }}} + The encoding parameter is optional. With Solr4.1 and later, this defaults to UTF-8. Prior to Solr4.1, the current machine's default encoding was used. + The enity which uses this datasource must keep the url value as the variable name dataField="field-name". For instance , if the parent entity 'dbEntity' has a field called 'xmlData' . Then he child entity would look like, {{{