Apache Tika Parser Stage

Apache Tika parser stage

Apache Tika is a versatile parser that supports many types of unstructured document formats, such as HTML, PDF, Microsoft Office documents, OpenOffice, RTF, audio, video, images, and more. A complete list of supported formats is available at http://tika.apache.org/.

Tip
When entering configuration values in the UI, use unescaped characters, such as \t for the tab character. When entering configuration values in the API, use escaped characters, such as \\t for the tab character.

Apache Tika stage-specific properties

Property Description, Type
addFailedDocs

Add failed documents

type: boolean

default value: 'false'

addOriginalContent

Add original document content (raw bytes)

type: boolean

default value: 'false'

contentEncoding

Content transport encoding of the content (per RFC1341)

type: string

default value: 'binary'

enum: { binary base64 }

enabled

Enable this Parser Stage

type: boolean

default value: 'true'

errorHandling

Error Handling

type: string

default value: 'mark'

enum: { ignore log fail mark }

excludeContentTypes

Content types to exclude

List of content types to exclude from parsing

type: array of string

extractHtmlLinks

Extract XHTML links

Collect links explicitly declared in document structure (e.g. using HTML tags, bookmarks, etc)

type: boolean

default value: 'true'

extractOtherLinks

Extract other links

Use regex-based heuristic extractor to collect likely links from plain text content in all fields.

type: boolean

default value: 'false'

flattenCompound

Flatten compound documents

type: boolean

default value: 'false'

id

Parser ID

type: string

default value: '1ade678c-5dde-4c62-b73b-48e5860e2f83'

includeImages

Include images

type: boolean

default value: 'false'

inheritMediaTypes

use default media types for this Parser Stage

Indicates if parser stage should use the default media types. Unchecking this box means that ONLY the manually configured media types will be parsed by the parser and you then MUST provide at least one media type.

type: boolean

default value: 'true'

keepOriginalStructure

Return original XML and HTML instead of Tika XML output

type: boolean

default value: 'false'

mediaTypes

Media Types for this Parser Stage

type: array of string

outputFieldPrefix

Prefix parsed fields with

Fields extracted by this parser will be prefixed with this string. The remainder of the field name will be as detected in the stream

type: string

maxLength: 20

pattern: ^$|^[A-Za-z_][A-Za-z0-9_\-\.]+$

pathPatterns

File names to parse

Specify a file name or pattern that must be matched for this parser stage to run. Forward slashes ("/") are used to join names of files inside archives with the archive name.

type: array of object

object attributes: {
  pattern : {
    display name: File name or pattern
    type: string
    description : e.g.: "z.txt" or "*.md" or "/a/*/b/f.txt" for glob; "z.txt$" or ".*\.txt$" or "^/a/[^\/]*/b/f.txt$" for regex
    }
  syntax : {
    display name: Pattern type
    type: string
    default value: 'glob'
    description : glob uses bash shell-style wildcards; regex uses Java (PCRE-style) regex
    enum: { glob regex     }

    }
  }
returnXml

Return parsed content as XML or HTML

type: boolean

default value: 'false'

type

required

type: string

default value: 'tika'

enum: { tika }

zipBombCompressionRatio

Maximum input-to-output byte ratio

Maximum number of output bytes fusion will generate per input byte. If you are indexing highly compressed files, you may increase this value to avoid triggering 'Zip Bomb' detection

type: integer

default value: '200'

zipBombMaxDepth

Maximum nesting depth

Returns the maximum XML element nesting level. If you are indexing highly nested files, you may increase this value to avoid triggering 'Zip Bomb' detection

type: integer

default value: '200'

zipBombMaxPackageEntryDepth

Maximum package entry depth

Sets the maximum package entry nesting level. If you are indexing highly nested files, you may increase this value to avoid triggering 'Zip Bomb' detection

type: integer

default value: '20'