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.