Custom Value for Last-Modifed Date


You want to use a custom meta tag in HTML documents to replace the Last-Modified date value returned by the web server. This example is overly simplistic to highlight the usage of -metafile. Your indexing jobs will likely differ.

vspider -cmdfile /verity/spider/meta.cmd

where meta.cmd consists of:

-collection icd.coll
-metafile /verity/dlt.txt

and dlt.txt consists of the following:

Document_Last_Touched Last-Modified

If you want the Document_Last_Touched value to always take precedence, add the override flag "Y" at the end of the entry. If you want the Document_Last_Touched value to be used only when the web server does not itself provide a value for Last_Modified, then add the override flag "N" at the end of the entry.

The custom meta tag Document_Last_Touched must exist in all HTML documents, and contain a date value in one of the following date formats:

Date format
Example
RFC822 (updated by RFC 1123)
Example: Sun, 06 Nov 1994 08:49:37 GMT
RFC850 (obsoleted by RFC 1036)
Example: Sunday, 06-Nov-94 08:49:37 GMT
ANSI C's asctime() format
Example: Sun Nov 6 08:49:37 1994

Warning! The day value must occupy two spaces.If you only have one digit, as in the example, then you must provide an extra space between the month and the digit.

Case-specific Options

Option
Reason
-metafile
This option specifies the mapping file which contains the information mapping your custom meta field to the standard HTTP header field, Last-Modified.





Copyright © 1998, Verity, Inc. All rights reserved.