Skip to main content

TikaLinkExtractor

Extracts links from documents using Apache Tika.

Notesโ€‹

Extracts links from documents using Apache Tika. Supports content-type restrictions, nofollow handling, and optional extraction from metadata fields in addition to document content.

Usageโ€‹

class: TikaLinkExtractor
contentTypeMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false
fieldMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false
ignoreLinkData: false
ignoreNofollow: false
restrictions:
- fieldMatcher: {}
valueMatcher: {}

Propertiesโ€‹

PropertyTypeRequiredDefault
contentTypeMatcherTextMatcherNoTextMatcher
fieldMatcherTextMatcherNoTextMatcher
ignoreLinkDatabooleanNofalse
ignoreNofollowbooleanNofalse
restrictionsPropertyMatcher[]No-

Property Detailsโ€‹

contentTypeMatcherโ€‹

Restricts processing to documents whose content type matches the specified pattern. When not set, the handler applies to all content types.

fieldMatcherโ€‹

Matches document fields based on specified patterns and methods. Use this to restrict the handler to operate only on fields whose names satisfy the matcher criteria.

ignoreLinkDataโ€‹

When enabled, extra data attributes on links (such as data-* attributes) are ignored during link extraction.

ignoreNofollowโ€‹

When enabled, links marked with rel="nofollow" are followed and extracted anyway, ignoring the nofollow directive.

restrictionsโ€‹

Defines filter conditions that restrict which documents this committer processes. Documents not matching the restrictions are ignored by this committer.