Class TextBetweenTransformerConfig
- All Implemented Interfaces:
Labelable
Extracts and add values found between a matching start and end strings to a document metadata field. The matching string end-points are defined in pairs and multiple ones can be specified at once. The field specified for a pair of end-points is considered a multi-value field.
If "fieldMatcher" is specified, it will use content from matching fields and storing all text extracted into the target field, multi-value. Else, the document content is used.
Storing values in an existing field
If a target field with the same name already exists for a document,
values will be added to the end of the existing value list.
It is possible to change this default behavior by supplying a
PropertySetter.
This class can be used as a pre-parsing handler on text documents only or a post-parsing handler.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintinthashCode()setMaxReadSize(int maxReadSize) setOperations(List<TextBetweenOperation> operations) setSourceCharset(Charset sourceCharset) toString()Methods inherited from class com.norconex.importer.handler.BaseLabelableConfig
getLabel, setLabel
-
Constructor Details
-
TextBetweenTransformerConfig
public TextBetweenTransformerConfig()
-
-
Method Details
-
getOperations
-
setOperations
-
getMaxReadSize
public int getMaxReadSize() -
getSourceCharset
-
setMaxReadSize
- Returns:
this.
-
setSourceCharset
- Returns:
this.
-
equals
- Overrides:
equalsin classBaseLabelableConfig
-
canEqual
- Overrides:
canEqualin classBaseLabelableConfig
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseLabelableConfig
-
toString
- Overrides:
toStringin classBaseLabelableConfig
-