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.
- YAML
- JSON
- XML
documentChecksummer:
class: Md5DocumentChecksummer
{
"documentChecksummer": {
"class": "Md5DocumentChecksummer"
}
}
<documentChecksummer>
<class>Md5DocumentChecksummer</class>
</documentChecksummer>
Usageโ
Full configuration skeleton, with every option and its default
- YAML
- JSON
- XML
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
{
"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"
}
<documentChecksummer>
<class>Md5DocumentChecksummer</class>
<combineFieldsAndContent>false</combineFieldsAndContent>
<fieldMatcher>
<ignoreCase>false</ignoreCase>
<ignoreDiacritic>false</ignoreDiacritic>
<matchEmpty>false</matchEmpty>
<method>BASIC</method>
<negateMatches>false</negateMatches>
<partial>false</partial>
<pattern>string</pattern>
<replaceAll>false</replaceAll>
<trim>false</trim>
</fieldMatcher>
<keep>false</keep>
<onSet>APPEND</onSet>
<toField>string</toField>
</documentChecksummer>
Propertiesโ
| Property | Type | Required | Default |
|---|---|---|---|
combineFieldsAndContent | boolean | No | false |
fieldMatcher | TextMatcher | No | TextMatcher |
keep | boolean | No | false |
onSet | enum | No | - |
toField | string | No | - |
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โ
APPENDPREPENDREPLACEOPTIONAL
toFieldโ
A target field name used to store the value.