Class TikaLinkExtractorConfig
java.lang.Object
com.norconex.crawler.web.doc.operations.link.impl.TikaLinkExtractorConfig
Configuration for TikaLinkExtractor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanvoidClears all restrictions.booleanThe matcher of content types to apply link extraction on.Matcher of one or more fields to use as the source of content to extract links from, instead of the document content.Gets all restrictionsinthashCode()booleanWhether to ignore extra data associated with a link.booleansetContentTypeMatcher(TextMatcher matcher) The matcher of content types to apply link extraction on.setFieldMatcher(TextMatcher fieldMatcher) setIgnoreLinkData(boolean ignoreLinkData) Whether to ignore extra data associated with a link.setIgnoreNofollow(boolean ignoreNofollow) toString()
-
Constructor Details
-
TikaLinkExtractorConfig
public TikaLinkExtractorConfig()
-
-
Method Details
-
setFieldMatcher
-
setContentTypeMatcher
The matcher of content types to apply link extraction on. No attempt to extract links from any other content types will be made. Default isCommonMatchers.HTML_CONTENT_TYPES.- Parameters:
matcher- content type matcher- Returns:
- this
-
clearRestrictions
public void clearRestrictions()Clears all restrictions. -
getRestrictions
Gets all restrictions- Returns:
- the restrictions
-
isIgnoreNofollow
public boolean isIgnoreNofollow() -
isIgnoreLinkData
public boolean isIgnoreLinkData()Whether to ignore extra data associated with a link.- Since:
- 3.0.0
-
getContentTypeMatcher
The matcher of content types to apply link extraction on. No attempt to extract links from any other content types will be made. Default isCommonMatchers.HTML_CONTENT_TYPES. -
getFieldMatcher
Matcher of one or more fields to use as the source of content to extract links from, instead of the document content. -
setIgnoreNofollow
- Returns:
this.
-
setIgnoreLinkData
Whether to ignore extra data associated with a link.- Returns:
this.- Since:
- 3.0.0
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-