The Eroom Scanner component performs full and incremental scans over a Eroom Community, maintaining a snapshot of the community and comparing it with the current content to establish what content has been updated. Updated content is then submitted to the configured pipeline in AspireObjects attached to Jobs. As well as the URL of the changed item, the AspireObject will also contain metadata extracted from the repository. Updated content is split in to three types: add, update, and delete. Each type of content is published on a different event so that it may be handled by different Aspire pipelines

The scanner reacts to an incoming job. This job may instruct the scanner to start, stop, pause or resume. Typically the start job will contain all information required by the job to perform the crawl. However, the scanner can be configured with default values via application.xml file. When pausing or stopping, the scanner will wait until all the jobs it published have completed before itself completing.

 

ERoom Scanner (Aspire 2)
Factory Name com.searchtechnologies.aspire:aspire-eroom-connector
subType default
Inputs AspireObject from a content source submitter holding all the information required for a crawl
Outputs Jobs from the crawl

Input Job Parameters

The scanner recognizes the following parameters on the control Job:

ElementTypeDescription
idintThe database id from the aspire_content_sources table.
@crawlIdintThe crawl id from the content database.
@actionStringThe control job action - start, stop, pause or resume.
@actionPropertiesStringProperties for the crawl - full or incremental.
connectorSource/displayNameStringThe name of the crawl.
connectorSource/urlStringThe URL to scan.
connectorSource/usernameStringThe username to connect to Eroom Community with.
connectorSource/passwordStringThe password to connect to Eroom Community with.
connectorSource/indexFoldersbooleantrue if folders (as well as documents) should be published.


Configuration

The scanner recognizes the following configuration parameters:

ElementTypeDefaultDescription
urlString
The url to the Eroom Site.
usernameString
The username to use when accessing Eroom Site..
passwordString
The password to use when accessing Eroom Site.
snapshotDirString.The directory for snapshot files.

General Scanner Component Configuration

Basic Scanner Configuration

ElementTypeDefaultDescription
snapshotDirStringsnapshotsThe directory for snapshot files.
numOfSnapshotBackupsint2The number of snapshots to keep after processing.
waitForSubJobsTimeoutlong600000
(=10 mins)
Scanner timeout while waiting for published jobs to complete.
maxOutstandingTimeStatisticslong1mThe max about of time to wait before updating the statistics file. Whichever happens first between this property and maxOutstandingUpdatesStatistics will trigger an update to the statistics file.
maxOutstandingUpdatesStatisticslong1000The max number of files to process before updating the statistics file. Whichever happens first between this property and maxOutstandingTimeStatistics will trigger an update to the statistics file.
usesDomainbooleantrueIndicates if the group expansion request will use a domain\user format (useful for connectors that does not support domain in the group expander).

Branch Handler Configuration

This component publishes to the onAdd, onDelete and onUpdate, so a branch must be configured for each of these three events.

ElementTypeDescription
branches/branch/@eventstringThe event to configure - onAdd, onDelete or onUpdate.
branches/branch/@pipelineManagerstringThe name of the pipeline manager to publish to. Can be relative.
branches/branch/@pipelinestringThe name of the pipeline to publish to. If missing, publishes to the default pipeline for the pipeline manager.
branches/branch/@allowRemotebooleanIndicates if this pipeline can be found on remote servers (see Distributed Processing for details).
branches/branch/@batchingbooleanIndicates if the jobs processed by this pipeline should be marked for batch processing (useful for publishers or other components that support batch processing).
branches/branch/@batchSizeintThe max size of the batches that the branch handler will created.
branches/branch/@batchTimeoutlongTime to wait before the batch is closed if the batchSize hasn't been reached.
branches/branch/@simultaneousBatchesintThe max number of simultanous batches that will be handled by the branch handler.

Example Configuration

<component name="EroomScanner" subType="default" factoryName="aspire-eroom-connector">
	<debug>true</debug>
        <snapshotDir>${app.data.dir}/snapshots</snapshotDir>
	<branches>
		<branch event="onAdd" pipelineManager="../ProcessPipelineManager" pipeline="add-update-pipeline"
                        allowRemote="true" batching="true" batchSize="50" batchTimeout="60000" simultaneousBatches="2"/>
		<branch event="onUpdate" pipelineManager="../ProcessPipelineManager" pipeline="add-update-pipeline"
                        allowRemote="true" batching="true" batchSize="50" batchTimeout="60000" simultaneousBatches="2"/>
		<branch event="onDelete" pipelineManager="../ProcessPipelineManager" pipeline="post-to-search-engine-pipeline"
                        allowRemote="true" batching="true" batchSize="50" batchTimeout="60000" simultaneousBatches="2"/>
	</branches>
</component>
  • No labels