Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Content Type Detector component can be configured using the Aspire workflow section. It requires the following entities to be created. 
Below are the examples of how to configure the component. 

Easy Heading Free
navigationTitleOn this Page
wrapNavigationTexttrue
navigationExpandOptionexpand-all-by-default

Create Workflow


Field

Required

Default

Multiple

NotesExample
descriptionYes-NoName of the credential object.

"Content Type Detector"

propertiesYes-NoConfiguration object
Ignore Delete JobsNoTrueNoOption to skip delete jobs.TRUE
Fetch fileNoFalseNoSelect if you need to fetch a file.FALSE
Use default document pathNoTrueNoSelect so that Aspire will use the fetchUrl or displayUrl as the location of the file.FALSE
Document fetch pathYes
NoLocation in the Aspire document of the path to the file to fetch."/doc/fetchUrl"
Max Lookahead in MBytes for type detectionYes0.5NoMaximum to consume the file stream to detect the type.0.5
Max percent of column variability to allow in text separated filesYes0NoMaximum percentage of variability to allow in the number of columns.0
Apache Tika configuration pathNoNoneNoPath for Apache Tika configuration file."/path/to/tikaConfig.xml"

Example

Code Block
themeRDark
titlePOST aspire/_api/credentials
{
    "description": "Content Type Detector",
    "properties": {
        "ignoreDeleteJobs": true,
        "enableFetchUrl": false,
        "fetchPath": "/doc/fetchUrl",
        "maxLookaheadSize": 0.5,
        "variabilityPercent": 0,
        "tikaConfig": "/path/to/tikaConfig.xml"     
    }
}

Update Workflow


Field

Required

Default

Multiple

NotesExample
descriptionYes-NoName of the credential object.

"Content Type Detector"

propertiesYes-NoConfiguration object
propertiesYes-NoConfiguration object
Ignore Delete JobsNoTrueNoOption to skip delete jobs.TRUE
Fetch fileNoFalseNoSelect if you need to fetch a file.FALSE
Use default document pathNoTrueNoSelect so that Aspire will use the fetchUrl or displayUrl as the location of the file.FALSE
Document fetch pathYes
NoLocation in the Aspire document of the path to the file to fetch."/doc/fetchUrl"
Max Lookahead in MBytes for type detectionYes0.5NoMaximum to consume the file stream to detect the type.0.5
Max percent of column variability to allow in text separated filesYes0NoMaximum percentage of variability to allow in the number of columns.0
Apache Tika configuration pathNoNoneNoPath for Apache Tika configuration file."/path/to/tikaConfig.xml"

Example 

Code Block
themeRDark
titlePUT aspire/_api/credentials/2a5ca234-e328-4d40-bb2a-2df3e550b065
{      
	"description": "Content Type Detector",
    "properties": {
        "ignoreDeleteJobs": true,
        "enableFetchUrl": true,
		"defaultFetchPath": true,
		"fetchPath": true
        "fetchPath": "/doc/fetchUrl",
        "maxLookaheadSize": 0.5,
        "variabilityPercent": 0,
        "tikaConfig": "/path/to/tikaConfig.xml"        
	}
}