Skip to main content

GenericMetadataChecksummer

Use one or more matching metadata field values.

Notes

Generates a checksum from the values of one or more matching metadata fields to detect document changes between crawl sessions. When a document's metadata checksum matches its previous value, the document is considered unchanged.

Examples

The following example uses a combination of two (fictitious) fields called "docLastModified" and "docSize" to make the checksum.

metadataChecksummer:
class: GenericMetadataChecksummer
fieldMatcher:
method: CSV
pattern: docLastModified,docSize

Usage

Full configuration skeleton, with every option and its default
class: GenericMetadataChecksummer
fieldMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false
keep: false
onSet: APPEND
toField: string

Properties

PropertyTypeRequiredDefault
fieldMatcherTextMatcherNoTextMatcher
keepbooleanNofalse
onSetenumNo-
toFieldstringNo-

Property Details

fieldMatcher

The values of matching fields will be used to create the checksum.

keep

Add the checksum to the document metadata.

onSet

What to do if a target field of the same name already exist.

Allowed Values

  • APPEND
  • PREPEND
  • REPLACE
  • OPTIONAL

toField

A target field name used to store the value.