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 NoblePaul:
http://wiki.apache.org/solr/DataImportHandler

The comment on the change is:
the example in FileListEntityProcessor is made complete

------------------------------------------------------------------------------
   * '''`olderThan`''' : A date param . Same rules as above
   example:
  {{{
+ <dataConfig>
+     <dataSource type="FileDataSource" />
+         <document>
- <entity name="f" processor="FileListEntityProcessor" fileName=".*xml" 
newerThan="'NOW-3DAYS'" recursive="true" rootEntity="false" dataSource="null">
+             <entity name="f" processor="FileListEntityProcessor" 
fileName=".*xml" newerThan="'NOW-3DAYS'" recursive="true" rootEntity="false" 
dataSource="null">
-   <entity processor="XPathEntityProcessor" forEach="/the/record/xpath" 
url="${f.fileAbsolutePath}">
+                 <entity name="x" processor="XPathEntityProcessor" 
forEach="/the/record/xpath" url="${f.fileAbsolutePath}">
-      <field column="full_name" xpath="/field/xpath"/> 
+                     <field column="full_name" xpath="/field/xpath"/> 
-   </entity>
- </entity>
+                 </entity>
+             </entity>
+         <document>
+ <dataConfig>
  }}}
  Do not miss the `rootEntity` attribute. The implicit fields generated by the 
processor are `fileAbsolutePath,fileSize,fileLastModified,fileName`.
  

Reply via email to