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.