The Publish to SolrCloud application sends document feeds, to SolrCloud index through SolrJ. SolrJ has a CloudSolrClient (or HTTPSolrClient) class to communicate with SolrCloud.
Instances of this class communicate with Zookeeper to discover Solr endpoints for SolrCloud collections (or directly to a Solr endpoint), and then use the LBHttpSolrClient to issue requests. The feed to Solr can be customized by editing the XSL transformation file provided by the user.
|Publish to SolrCloud
|AspireObject from a connector's subjob with metadata and content extracted from a specific file/folder.
|An XML transformation of the AspireObject sent to the Solr's xmlfeed URL.
This section lists all configuration parameters available to configure the Publish to SolrCloud component.
|Connection method to communicate with Solr
|Zookeeper hosts and port comma separated or Solr host and port (depends of connection method selected)
|Zookeeper route for Solr znode tree.
|Solr collection name to submit post documents.
|Location of the XSL to transform the job data to a Solr feed. See Edit Xsl.
|Maximum number of retry attempt to index.
|Seconds to wait before re-trying to index.
|XPath expression to process field list.
|Field used to identify the jobs on Solr Cloud
|Force commit before send a batch
|Milliseconds to wait before send the batch to index
|Zookepper Solr Cloud Client timeout
|Zookepper Solr Cloud Connect timeout
|To use kerberos authentication
|The configuration file properties path
|Enable debug messages.
To add a new metadata field extracted by an Aspire Connector add an XSL element under the <doc> tag.
Notice that the dynamic field _t is being used by default. If you have a Solr schema that supports your field, then just enter the field name as defined in the schema.
The id of a Solr document is used to uniquely identify a file in the index. By default, Publish To SolrCloud will use the following fields from the Aspire document in order of precedency (if one is missing, then the next will be used):
If you want to change this behavior, edit or create a new XSL file which has the following element:
More advanced changes can be accomplished reading the Solr Update XML Messages wiki.