Skip to main content

Md5DocumentChecksummer

Generate a MD5 checksum from content (default) or fields.

Notesโ€‹

Generates an MD5 checksum from a document's content, metadata fields, or both to detect changes between crawl sessions. Optionally stores the generated checksum value in a specified metadata field.

Examplesโ€‹

The following example uses the document body (default) to create the checksum.

documentChecksummer:
class: Md5DocumentChecksummer

Usageโ€‹

Full configuration skeleton, with every option and its default
class: Md5DocumentChecksummer
combineFieldsAndContent: false
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
combineFieldsAndContentbooleanNofalse
fieldMatcherTextMatcherNoTextMatcher
keepbooleanNofalse
onSetenumNo-
toFieldstringNo-

Property Detailsโ€‹

combineFieldsAndContentโ€‹

Combine content and matching field values to create the MD5 checksum. Otherwise, only content or fields will be used based on whether a field expression was used or not.

fieldMatcherโ€‹

Use the values of matching fields to create the MD5 checksum. When set, it is used in lieu of the document content unless you opt to combine both.

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.