Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Publish to SolrCloud App Bundle 

Detailed information on configuring the Publish to SolrCloud App Bundle.

The Publish to Solr application sends document feeds, to the Solr index update servlet, of metadata and content of files extracted by Aspire connectors. The feed to Solr can be customized by
editing the XSL transformation file provided by the user.

Publish to SolrCloud
Factory Namecom.searchtechnologies.aspire:app-publish-to-solrj
subTypedefault
InputsAspireObject from a connector's subjob with metadata and content extracted from a specific file/folder.
OutputsAn XML transformation of the AspireObject sent to the Solr's xmlfeed URL.
Versions3.1, 3.3
Type Flagsjob-input

Configuration


This section lists all configuration parameters available to configure the Publish to SolrCloud component.

 

PropertyTypeDefaultDescription
zkHoststringnoneZookeeper hostname or IP address.
zkPortinterger8983Zookeeper port number where to send the feeds
solrCollectionstringnoneSolr collection name to submit post documents using binary request handler for increased index performance.
SolrUrlstringnoneComplete Url where the feeds are going to be send. e.g. http://localhost:8983/solr/core/update
aspireToSolrXslstring${appbundle.home}/config/xsl/aspireToSolr.xslLocation of the XSL to transform the job data to a Solr feed. See Edit Xsl.
batchSize   int How many documents to fetch per batch.
maxTries int Maximum number of retry attempt to index.
retryWait int Seconds to wait before re-trying to index.
fieldListPath  String XPath expression to process field list.

Example Configuration


<application config="com.searchtechnologies.aspire:app-publish-to-solrj">

  <properties>
     <property name="BatchSize">50</property>
     <property name="RetryWait">3</property>
     <property name="FieldListPath">/add/doc/fieldList</property>
     <property name="AspireToSolrXsl">${appbundle.home}/config/xsl/aspireToSolr.xsl</property>
     <property name="debug">true</property>
     <property name="MaxTries">3</property>
     <property name="ZKPort">9983</property>
     <property name="SolrCollection">collection1</property>
     <property name="ZKHost">localhost</property>
   </properties>
</application>

Note

Any optional properties can be removed from the configuration to use the default value described on the table above.