lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "DataImportHandler" by NoblePaul
Date Wed, 26 Mar 2008 10:17:52 GMT
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
   * '''`query`''' (required) : The sql string using which to query the db
+  * '''`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) 
   * '''`pk`''' : The primary key for the entity
   * '''`deltaQuery`''' : Only used in delta-import
@@ -300, +301 @@

   * '''`connectionTimeout`''' (optional):The default value is 5000ms 
   * '''`readTimeout`''' (optional): the default value is 10000ms 
  == Configuration in data-config.xml ==
- -- TODO --
+ The entity for an xml/http data source can have the following attributes
+  * '''`name`''' (required) : A unique name used to identify an entity
+  * '''`processor`''' (required) : The value must be ''!XPathEntityProcessor''
+  * '''`url`''' (required) : The url used to invoke the REST API. (Can be templatized)
+  * '''`forEach`'''(required) : The xpath expression which demarcates a record. If there
are mutiple types of record separate them with '' |  ''
+  * '''`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) 
+  * '''`pk`''' : The primary key for the entity. Only needed for the root entity. This will
be the id for the document
+ 
+  
   
  
  = Extending the tool with APIs =

Mime
View raw message