Skip to main content

FsMetadataChecksummer

Generates a metadata checksum for file system documents based on file attributes.

Notes

Generates a metadata checksum for file system documents using file system attributes such as last-modified date and file size. Optionally stores the generated checksum in a specified metadata field.

Examples

The following will store the generated metadata checksum in a field called "checksum".

class: FsMetadataChecksummer
keep: true
toField: checksum

Usage

Full configuration skeleton, with every option and its default
class: FsMetadataChecksummer
keep: false
onSet: APPEND
toField: string

Properties

PropertyTypeRequiredDefault
keepbooleanNofalse
onSetenumNo-
toFieldstringNo-

Property Details

keep

When enabled, the generated checksum value is also stored as a metadata field on the document.

onSet

Defines what to do when the target field already has one or more values. When unspecified, new values are appended to existing ones by default.

Allowed Values

  • APPEND
  • PREPEND
  • REPLACE
  • OPTIONAL

toField

The target metadata field name where the extracted or computed value will be stored. If a field of the same name already exists, the behavior is controlled by onSet.