FeedOne feeds a single URL down the pipeline in response to a command from the administrator. It can be used for simple feeding requirements or debugging of pipelines.
FeedOne also provides the ability to feed a document upon startup and optionally shut down Aspire afterwards, allowing Aspire to by used by an external program to perform batch processing.
Feed One | |
---|---|
Factory Name | com.searchtechnologies.aspire:aspire-tools |
subType | feedOne |
Inputs | An administrator command (available from the Aspire Admin GUI) |
Outputs | An AspireObject containing the URL entered by the administrator in the <fetchUrl> element |
Configuration
Element | Type | Default | Description |
---|---|---|---|
branches | None | The configuration of the pipeline to publish to. See below. | |
feederLabel | String | null | The <feederLabel> value to be included with the document as it is sent to the pipeline. For example, CrawlDomain. |
button | String | null | Specifying this option will change the admin page to show just a simple Start button to kick off Aspire processes that do not require an input file. The string entered here will be added to the AspireDocument as the "url". |
feedOnStartup | String | null | If <feedOnStartup> is specified with location to feed e.g. file:///C:/aspire-home/data then auto feed would start. |
autoShutdown | boolean | false | If true, then system will shutdown after feed. |
Branch Configuration
The feed one feeder publishes files using the branch manager. It publishes using the onPublish event. You must therefore include a <branches> element in the configuration to publish to a pipeline within a pipeline manager. See Branch Handler for more details.
Element | Type | Description |
---|---|---|
branches/branch/@event | String | The event to configure. This must be onPublish. |
branches/branch/@pipelineManager | string | The name of the pipeline manager to publish to. Can be relative. |
branches/branch/@pipeline | string | The name of the pipeline to publish to. If missing, publishes to the default pipeline for the pipeline manager. |
Example Configuration 1
<component name="feedOne" subType="feedOne" factoryName="aspire-tools"> <branches> <branch event="onPublish" pipelineManager="standard-pipe-manager" /> </branches> <feederLabel>CrawlDomain</feederLabel> </component>
Example Configuration 2 - autoFeed and Shutdown
<component name="feedOne" subType="feedOne" factoryName="aspire-tools"> <branches> <branch event="onPublish" pipelineManager="standard-pipe-manager" /> </branches> <feederLabel>CrawlDomain</feederLabel> <feedOnStartup>file:///C:/aspire-home/st_files</feedOnStartup> <autoShutdown>true</autoShutdown> </component>
Overview
Content Tools