Class CommonAttributesResolver

java.lang.Object
com.norconex.importer.util.CommonAttributesResolver

public final class CommonAttributesResolver extends Object

Detects common document attributes and set them as document metadata fields. The attributes are only detected and set if it is not already present, unless overwrite is true.

You can expect the following properties/fields to be set after using this class.

DocRecord property to metadata field mapping
DocRecord property Metadata field
contentEncodingDocMetaConstants.CONTENT_ENCODING
contentTypeDocMetaConstants.CONTENT_TYPE
DocMetaConstants.CONTENT_FAMILY
Since:
4.0.0
  • Method Details

    • resolve

      public static void resolve(Doc doc)
    • resolve

      public static void resolve(Doc doc, boolean overwrite)