The Confluence Scanner component performs full and incremental scans over a Confluence repository, maintaining a snapshot of the repository 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 into 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.

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

Configuration

This section lists all configuration parameters available to configure the Atlassian Confluence Scanner component.

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.

Atlassian Confluence Specific Configuration

ElementTypeDefaultDescription
confluenceVersionstringV3.5Indicates the Confluence version that will be crawled.
cacheTimeoutstring180000Time that the cache memory will be alive.
numOfSnapshotBackupsstring10Number of snapshots that will be stored as backups.
groupPrefixSeparatorstring|Prefix used to separate users and groups on ACL's file.
confluencePublicAclstringconfluence-public-aclACL that will be used to indicate that a page have public access.
defaultConfluenceUrlstring
Confluence instance to crawl,
defaultDomainstring
The domain to connect to Confluence.
defaultUsernamestring
The username to connect to Confluence.
defaultPasswordstring
The password to connect to Confluence.
ssoAuthenticationbooleanfalseCheck this if your confluence authentication is managed by a Single Sign On engine and it uses a cookie based authentication mechanism.
ssoServerstring
The full URL where we are going to do the request to authenticate.
ssoCookiestring
The name of the authentication cookie the system should look for.
useGEbooleanfalseCheck this if you want to use group expansion.
useLDAPCachebooleanfalseCheck this if you want to use an external server to perform group expansion (Group Expansion Manager is required).
externalGroupServerPathselect
Indicates the path of the component that gets the external groups from LDAP.

Configuration Example

<component name="Scanner" subType="${confluenceVersion}"
	factoryName="aspire-confluence-connector">
	<debug>true</debug>
	<confluencePublicAcl>confluence-public-acl</confluencePublicAcl>
	<confluenceVersion>v5</confluenceVersion>
	<snapshotDir>${dist.data.dir}/${app.name}/snapshots</snapshotDir>
	<groupPrefixSeparator>|</groupPrefixSeparator>
	<pluginEnabled>false</pluginEnabled>
	<cacheTimeout>180000</cacheTimeout>
	<useLDAPCache>false</useLDAPCache>
	<externalGroupServerPath></externalGroupServerPath>
	<includeAttachments>true</includeAttachments>
	<includeComments>true</includeComments>
	<anonymousAccessAllowed>false</anonymousAccessAllowed>
	<numOfSnapshotBackups>10</numOfSnapshotBackups>
	<branches>
		<branch event="onAdd" pipelineManager="../ProcessPipelineManager"
			pipeline="addUpdatePipeline" allowRemote="true" batching="true"
			batchSize="50" batchTimeout="60000" simultaneousBatches="2" />
		<branch event="onUpdate" pipelineManager="../ProcessPipelineManager"
			pipeline="addUpdatePipeline" allowRemote="true" batching="true"
			batchSize="50" batchTimeout="60000" simultaneousBatches="2" />
		<branch event="onDelete" pipelineManager="../ProcessPipelineManager"
			pipeline="deletePipeline" allowRemote="true" batching="true"
			batchSize="50" batchTimeout="60000" simultaneousBatches="2" />
	</branches>
</component>

Source Configuration

Scanner Control Configuration

The following table describes the list of attributes that the AspireObject of the incoming scanner job requires to correctly execute and control the flow of a scan process.

ElementTypeOptionsDescription
@actionstringstart, stop, pause, resume, abortControl command to tell the scanner which operation to perform. Use start option to launch a new crawl.
@actionPropertiesstringfull, incrementalWhen a start @action is received, it will tell the scanner to either run a full or an incremental crawl.
@normalizedCSNamestring
Unique identifier name for the content source that will be crawled.
displayNamestring
Display or friendly name for the content source that will be crawled.

Header Example

  <doc action="start" actionProperties="full" actionType="manual" crawlId="0" dbId="0" jobNumber="0" normalizedCSName="FeedOne_Connector"
   scheduleId="0" scheduler="##AspireSystemScheduler##" sourceName="ContentSourceName">
    ...
    <displayName>testSource</displayName>
    ...
  </doc>


All configuration properties described in this section are relative to /doc/connectorSource of the AspireObject of the incoming Job.

ElementTypeDefaultDescription
urlstringnoneThe url to the Confluence server.
domainstringnoneThe domain to the Confluence server.
usernamestringnoneThe name of the user that is going to be used for the crawl
passwordstringnoneThe password of the user.
pluginEnabledboolean
Indicates if the plugin is installed in the Confluence server.
includeAttachmentsboolean
Indicates if attachments should be included in the crawl.
includeCommentsboolean
Indicates if comments should be included in the crawl.
anonymousAccessAllowedboolean
Indicates if anonymous access allowed on this instance of Confluence.
indexContainersboolean
true if folders (as well as files) should be indexed.
scanRecursivelyboolean
Indicates whether the child containers should be scanned or not.
fileNamePatterns/include/@patternregexnoneOptional. A regular expression pattern to evaluate file urls against; if the file name matches the pattern, the file is included by the scanner. Multiple include nodes can be added.
fileNamePatterns/exclude/@patternregexnoneOptional. A regular expression pattern to evaluate file urls against; if the file name matches the pattern, the file is excluded by the scanner. Multiple exclude nodes can be added.


Scanner Configuration Example

<doc action="start" actionProperties="full" normalizedCSName="confluence">
  <connectorSource>
    <url>http://myConfluenceServer:8090/</url>
    <domain/>
    <username>admin</username>
    <password>encrypted:562E81591F85B858E5A5D3876F9C9FDB</password>
    <pluginEnabled>false</pluginEnabled>
    <includeAttachments>true</includeAttachments>
    <includeComments>true</includeComments>
    <anonymousAccessAllowed>false</anonymousAccessAllowed>
    <indexContainers>true</indexContainers>
    <scanRecursively>true</scanRecursively>
    <fileNamePatterns>
      <include pattern=".*place.*"/>
      <exclude pattern=".*people.*"/>
    </fileNamePatterns>
  </connectorSource>
  <displayName>confluence</displayName>
</doc>

Note: To launch a crawl, the job should be sent (processed/enqueued) to the "/ConfluenceConnector/Main" pipeline.

  • No labels