Field | Required | Default | Multiple | Notes | Example |
---|---|---|---|---|---|
type | Yes | - | No | The value must be "application". | "application" |
_type | Yes | - | No | The value must be "application". | "application" |
appName | Yes | - | No | The name of the application | "Solr_Publisher" |
appType | Yes | - | No | The value must be "solr-publisher". | "solr-publisher" |
config | Yes | - | No | The value must be "com.accenture.aspire:app-sample-summarizer". | "com.accenture.aspire:aspire-solr-publisher-source" |
description | Yes | - | No | The description | "solr_publisher" |
properties | Yes | - | No | Configuration object | |
useHost | Yes | false | No | Specify a Solr update URL by entering parts of it or the complete path | true / false |
solrCore | No | - | No | Solr URL core. Example: myCore. | "test_core" |
solrHost | No | - | No | Solr server hostname or IP address. Example: solr.domain.com. | "loclahost" |
solrPort | No | 8983 | No | Solr port number. Example: 8983. | "8983" |
solrUrl | No | - | No | The complete Solr update URL. Multiple hosts can be added separating them with a semi-colon (;) | "http://localhost:8983/solr/core/update?commitWithin=30000" |
authType | No | - | No | Specify the authentication information. Allowed values are: "none" or "basic". | "none" |
user | No | - | No | Provide the user for basic authentication. Required if authType is "basic". | "john.doe" |
password | No | - | No | Provide the password for basic authentication. Required if authType is "basic". | "myP@ssword11" |
transformType | Yes | - | No | Type of the transformation file used. | "JSON" |
transformFile | Yes | - | No | Path to the transform file. The default value is set to "${component.home}/config/groovy/transform.groovy" for the default JSON transformation file provided with Aspire. | "C:\transformfiles\groovy\mytransform.groovy" |
idleConnectionTimeout | No | - | No | Maximum time (in milliseconds) to keep an idle connection open. | 3600000 |
maxConnections | No | - | No | Maximum number of connections to be opened. | 100 |
maxConnectionsPerRoute | No | - | No | Maximum number of connections opened for the same target. | 10 |
connectionTimeout | No | - | No | Maximum time (in milliseconds) to wait for the connection. | 15000 |
socketTimeout | No | - | No | Maximum time (in milliseconds) to wait for a socket response. | 15000 |
useThrottling | No | - | No | Set to true to specify Throttling Settings. | true / false |
throttlingRate | No | 5000 | No | Time period (in milliseconds) to throttle the connection. | 6000 |
throttlingConnectionRate | No | 500 | No | Maximum number of connections used during the Throttling Period. | 600 |
maxRetries | No | 3 | No | Maximum number of retries for a failed document. | 5 |
retryWaitTime | No | 5 | No | Time period (in milliseconds) to wait before a retry. | 6000 |
batchSize | No | - | No | Maximum size of the batches that will be created. | 50 |
simultaneousBatches | No | - | No | Number of batches that will be processed simultaneously. | 5 |
batchTimeout | No | - | No | Period (in ms) after which a batch of documents will be closed and executed. | 5000 |
debug | No | - | No | Set to true to enable debug mode to show debug messages from the publisher. | true / false |
{ "type": "application", "_type": "publisher", "appName": "Solr Publisher", "appType": "solr-publisher", "config": "com.accenture.aspire:aspire-solr-publisher-source", "description": "SolrPublisher", "properties": { "useHost": false, "solrUrl": "http://localhost:8983/solr/test/update?commitWithin=30000", "transformType": "JSON", "transformFile": "${component.home}/config/groovy/transform.groovy", "authType": "basic", "user": "admin", "password": "encrypted:100CCB558E536015B5765BA68A52E8C3F7EF16359153EFDE8282760EDA8B07D9", "idleConnectionTimeout": 3600000, "maxConnections": 100, "maxConnectionsPerRoute": 10, "sharedConnection": false, "connectionTimeout": 15000, "socketTimeout": 15000, "useThrottling": false, "maxRetries": 3, "retryWaitTime": 5000, "batchSize": 50, "simultaneousBatches": 5, "batchTimeout": 5000, "debug": false } }