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

------------------------------------------------------------------------------
   * '''`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
   * '''`onError`''' : (abort|skip|continue) . The default value is 'abort' . 
'skip' skips the current document. 'continue' continues as if the error did not 
happen . <!> ["Solr1.4"]
-  * '''`preImportDeleteQuery`''' : before full-import this will be used to 
cleanup the index instead of using '*:*' <!> ["Solr1.4"].
+  * '''`preImportDeleteQuery`''' : before full-import this will be used to 
cleanup the index instead of using '*:*' .This is honored only on an entity 
that is an immediete sub-child of <document> <!> ["Solr1.4"].
-  * '''`postImportDeleteQuery`''' : after full-import this will be used to 
cleanup the index <!> ["Solr1.4"].
+  * '''`postImportDeleteQuery`''' : after full-import this will be used to 
cleanup the index <!>. This is honored only on an entity that is an immediete 
sub-child of <document> ["Solr1.4"].
  For !SqlEntityProcessor the entity attributes are :
  
   * '''`query`''' (required) : The sql string using which to query the db
@@ -129, +129 @@

    * This stored timestamp is used when a delta-import operation is executed.
    * Queries to Solr are not blocked during full-imports.
    * It takes in extra parameters
+    * '''entity''' : Name of an entity directly under the <document> tag. Use 
this to execute one or more entities selectively. Multple 'entity' parameters 
can be passed on to run multiple entities at once. If nothing is passed , all 
entites are executed
     * '''clean''' : (default 'true'). Tells whether to clean up the index 
before the indexing is started
     * '''commit''': (default 'true'). Tells whether to commit after the 
operation
     * '''optimize''': (default 'true'). Tells whether to optimize after the 
operation
@@ -694, +695 @@

  
  In the where the lhs (the part before '=') is the column in y and the rhs 
(the part after '=') is the value to be computed for looking up the cache.
   
+ === PlainTextEntityProcessor ===
+ [[Anchor(plaintext)]]
+ <!> ["Solr1.4"]
+ 
+ This works mostly like an X!PathEntityProcessor. The only difference is that 
it does not parse the content. It just gives out the whole content as one big 
String . It produces one implicit field called 'plainText' .
+ 
+ example:
+ {{{
+ <entity processor="PlainTextEntityProcessor" name="x" 
url="http://abc.com/a.txt";>
+    <!-- copies the text to a field called 'text' in Solr-->
+   <field column="plainText" name="text/>
+ <entity>
+ }}}
  
  
  == DataSource ==

Reply via email to