Class ForceSingleValueTransformerConfig

java.lang.Object
com.norconex.importer.handler.BaseLabelableConfig
com.norconex.importer.handler.BaseDocHandlerConfig
com.norconex.importer.handler.transformer.impl.ForceSingleValueTransformerConfig
All Implemented Interfaces:
Labelable

public class ForceSingleValueTransformerConfig extends BaseDocHandlerConfig

Forces a metadata field to be single-value. The action can be one of the following:

Can be used both as a pre-parse or post-parse handler.

    keepFirst          Keeps the first occurrence found.
    keepLast           Keeps the first occurrence found.
    mergeWith:<sep>    Merges all occurrences, joining them with the
                       specified separator (<sep>).
 

If you do not specify any action, the default behavior is to merge all occurrences, joining values with a comma.

See Also: