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

------------------------------------------------------------------------------
   * '''`name`''' (required) : A unique name used to identify an entity
   * '''`processor`''' : Required only if the datasource is not RDBMS . (The 
default value is `SqlEntityProcessor`)
   * '''`transformer`'''  : Transformers to be applied on this entity. (See the 
transformer section)
-  * '''`dataSource`''' : The name of a datasource as put in the solrconfig.xml 
.(Used if there are multiple datasources) 
+  * '''`dataSource`''' : The name of a datasource as put in the the datasource 
.(Used if there are multiple datasources) 
   * '''`pk`''' : The primary key for the entity. It is '''optional''' and only 
needed when using delta-imports. It has no relation to the uniqueKey defined in 
schema.xml but they both can be the same.
   * '''`rootEntity`''' : By default the entities falling under the document 
are root entities. If it is set to false , the entity directly falling under 
that entity will be treated as the root entity (so on and so forth). For every 
row returned by the root entity a document is created in Solr
  
@@ -636, +636 @@

   * '''`excludes`''' : A Regex pattern of excluded file names
   * '''`newerThan`''' : A date param . Use the format (`yyyy-MM-dd HH:mm:ss`) 
. It can also be a datemath string eg: ('NOW-3DAYS'). The single quote is 
necessary . Or it can be a valid variableresolver format like (${var.name})
   * '''`olderThan`''' : A date param . Same rules as above
-  * '''`rootEntity=false`''' : An entity directly under the <document> is a 
root entity. That means that for each row emitted by the root entity one 
document is created in Solr/Lucene. But as in this case we do not wish to make 
one document per file. We wish to make one document per row emitted by the 
following entity 'x'. Because the entity 'f' has rootEntity=false the entity 
directly under it becomes a root entity automatically and each row emitted by 
that becomes a document.
+  * '''`rootEntity`''' :It must be false for this (Unless you wish to just 
index filenames) An entity directly under the <document> is a root entity. That 
means that for each row emitted by the root entity one document is created in 
Solr/Lucene. But as in this case we do not wish to make one document per file. 
We wish to make one document per row emitted by the following entity 'x'. 
Because the entity 'f' has rootEntity=false the entity directly under it 
becomes a root entity automatically and each row emitted by that becomes a 
document.
-  * '''`dataSource=null`''' : It just means that we won't create a DataSource 
instance. (In most of the cases there is only one !DataSource (A 
!JdbcDataSource) and all entities just use them. In case of 
!FileListEntityProcessor a !DataSource is not necessary.)
+  * '''`dataSource`''' :It must be set to null because this does not use any 
DataSource.It just means that we won't create a DataSource instance. (In most 
of the cases there is only one !DataSource (A !JdbcDataSource) and all entities 
just use them. In case of !FileListEntityProcessor a !DataSource is not 
necessary.)
  
  example:
  {{{

Reply via email to