LastModifiedMetadataChecksummer
Uses the exact value of the "Last-Modified" HTTP header field.
Notes
Generates a metadata checksum from the value of the HTTP Last-Modified response header. When the header value is unchanged from the previous crawl, the document is considered unmodified and may be skipped.
Examples
The following example will store the last modified date used for checksum purposes in a field called "metaChecksum".
- YAML
- JSON
- XML
class: LastModifiedMetadataChecksummer
keep: true
toField: metaChecksum
{
"class": "LastModifiedMetadataChecksummer",
"keep": true,
"toField": "metaChecksum"
}
<class>LastModifiedMetadataChecksummer</class>
<keep>true</keep>
<toField>metaChecksum</toField>
Usage
Full configuration skeleton, with every option and its default
- YAML
- JSON
- XML
class: LastModifiedMetadataChecksummer
keep: false
onSet: APPEND
toField: string
{
"class": "LastModifiedMetadataChecksummer",
"keep": false,
"onSet": "APPEND",
"toField": "string"
}
<metadataChecksummer>
<class>LastModifiedMetadataChecksummer</class>
<keep>false</keep>
<onSet>APPEND</onSet>
<toField>string</toField>
</metadataChecksummer>
Properties
| Property | Type | Required | Default |
|---|---|---|---|
keep | boolean | No | - |
onSet | enum | No | - |
toField | string | No | - |
Property Details
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.