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 martijnvg
Date Fri, 09 Dec 2011 13:04:39 GMT
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 martijnvg:
http://wiki.apache.org/solr/DataImportHandler?action=diff&rev1=299&rev2=300

Comment:
Added documentation for SolrEntityProcessor

  See https://issues.apache.org/jira/browse/SOLR-2549 for a patch that extends LineEntityProcessor
to support fixed-width and delimited files without needing to use a Transformer.
  
  ----
+ === SolrEntityProcessor === 
+ <<Anchor(plaintext)>> <!> [[Solr3.6]]
+ 
+ This EntityProcessor imports data from different Solr instances and cores. The data is retrieved
based on a specified (filter) query.
+ This EntityProcessor is useful in cases you want to copy your Solr index and slightly want
to modify the data in the target index. In some
+ cases Solr might the only place were all data is available. The SolrEntityProcessor can
only copy fields that are stored in the source index.
+ The SolrEntityProcessor supports the following attributes:
+ * url The url of the source Solr instance / core
+ * query The main query to execute on the source index.
+ * fq Any filter query to execute in the source index. (Comma seperated) 
+ * rows The number of rows to return for each iteration. Defaults to 50.
+ * fields What fields to fetch from the source index. (Comma seperated)
+ * format The format (javabin|xml) to use as reponse format. Use xml if the Solr versions
don't match.
+ * timeout. The query timeout in seconds. This can be used as a fail-safe to prevent the
indexing session from freezing up. By default the timeout is 5 minutes.
+ 
+ Example:
+ {{{
+ <dataConfig>
+   <document>
+     <entity name="sep" processor="SolrEntityProcessor" url="http://localhost:8983/solr/db
" query="*:*"/>
+   </document>
+ </dataConfig>
+ }}}
+ 
  == DataSource ==
  <<Anchor(datasource)>> A class can extend `org.apache.solr.handler.dataimport.DataSource`
. [[http://svn.apache.org/viewvc/lucene/dev/trunk/solr/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/DataSource.java?view=markup|See
source]]
  

Mime
View raw message