Searching and Retrieving HTML META Tags that Represent Dates (243162)



The information in this article applies to:

  • Microsoft Site Server 3.0
  • Microsoft Site Server 3.0 Commerce Edition

This article was previously published under Q243162

SUMMARY

This article describes the correct method to configure Microsoft Search Server so that it will properly search and retrieve dates stored in custom HTML META tags.

MORE INFORMATION

Microsoft Site Server requires dates that will be crawled and indexed using Search Server must be in one of a few specific formats. Assuming you have an HTML page similar to the following:
<HTML>
<HEAD>
<TITLE>Sample Web Page</TITLE>
<META NAME="DateTag" CONTENT="Sun Nov 6 08:49:37 1994">
</HEAD>
<BODY>
Sample web page.
</BODY>
</HTML>
you can search and retrieve information on the DateTag META tag with a few simple steps:
  1. In the Site Server MMC, double-click Search, and then double-click your server.
  2. Double-click Catalog Build Server, double-click the desired catalog, and click Schema.
  3. Using the following parameters, add a schema entry:
    Property Name: DateTag
    Property Set: Standard Property Set - HTML META
    Property ID: DateTag
    Type: Date
    Index: Yes
    Retrieve: Yes
    						
  4. Click Submit, and then click Create Custom Schema.
  5. Using a standard results display page, use the DefineColumns method to define the custom column:
    objQuery.DefineColumn "DateTag (VT_FILETIME) = d1b5d3f0-c0b3-11cf-9a92-00a0c908dbf1 DateTag"
  6. Add the DateTag column to the list of columns you want to retrieve:
    objQuery.Columns = "Title, DocAddress, Description, Rank, DateTag"
    						
  7. Using the search page, perform a search using standard search syntax against DateTag. For example:
    @DateTag > 1994-11-6
    @DateTag < 1994/12/31

Modification Type:MajorLast Reviewed:6/30/2006
Keywords:kbhowto KB243162 kbAudDeveloper