Article ID: 318387 - Last Review: February 1, 2007 - Revision: 4.2 How to query Index Server data by using ASP in FrontPage 2002This article was previously published under Q318387 On This PageSUMMARY Use this step-by-step guide to create a customized Index
Server search page by using Active Server Pages (ASP) in FrontPage
2002. Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. Step 1 - Prepare to Use the ASP Features in FrontPageBefore you can use the ASP features in FrontPage 2002, install the components listed in the following Microsoft Knowledge Base article:318287
(http://support.microsoft.com/kb/318287/
)
What you need to use Active
Server Pages (ASP) in FrontPage 2002
Step 2 - Create a Form Page in FrontPage
Step 3 - Add the Sample ASP Code to the PageNOTE: You may receive an error message if you copy the examples directly from this article and paste them into FrontPage. The angle brackets (< and >) may appear as escaped HTML code (< and >). To work around this behavior, paste the script into a blank Notepad document, and then copy it from Notepad before you paste it into FrontPage.
Step 4 - Test the Sample ASP Page
Step 5 - Customize the Sample ASP PageThere are two customization options:
To Change the CatalogIf multiple Index Server catalogs are defined on your Web server, you can specify that the sample page use a different catalog. To do this, follow these steps:
To Modify the Field List
Field Name Field Type Description
---------------------------------------------------------------------------
Access Date/Time Last time file was accessed.
Characterization Text/String Characterization, or abstract, of
document. Computed by Index Server.
Create Date/Time Time file was created.
Directory Text/String Physical path to the file, not
including the file name.
DocAppName Text/String Name of application that created the
file.
DocAuthor Text/String Author of the document.
DocByteCount Numeric Number of bytes in the document.
DocCategory Text/String Type of document, such as a memo,
schedule, or white paper.
DocCharCount Numeric Number of characters in the document.
DocComments Text/String Comments about the document.
DocCompany Text/String Name of the company for which the
document was written.
DocCreatedTm Date/Time Time document was created.
DocEditTime Date/Time Total time spent editing document.
DocHiddenCount Numeric Number of hidden slides in a
PowerPoint file.
DocKeywords Text/String Document keywords.
DocLastAuthor Text/String Most recent user who edited the
document.
DocLastPrinted Date/Time Time document was last printed.
DocLastSavedTm Date/Time Time document was last saved.
DocLineCount Numeric Number of lines contained in a
document.
DocManager Text/String Name of the manager of the document's
author.
DocNoteCount Numeric Number of pages with notes in a
PowerPoint file.
DocPageCount Numeric Number of pages in th document.
DocParaCount Numeric Number of paragraphs in the document.
DocPartTitles Text/String Names of document parts. For example,
in Microsoft Excel, a spreadsheet is
a document part. In PowerPoint, a
slide is a document part. And, in
Word, the file names of the documents
contained in a master document are
document parts.
DocPresentationTarget Text/String Target format (35mm, printer, video,
and so on) for a PowerPoint
presentation.
DocRevNumber Text/String Current version number of a document.
DocSlideCount Numeric Number of slides in a PowerPoint
file.
DocSubject Text/String Subject of the document.
DocTemplate Text/String Name of the template for the
document.
DocTitle Text/String Title of document.
DocWordCount Numeric Number of words in the document.
FileIndex Numeric Unique ID of the file.
FileName Text/String Name of the file.
HitCount Numeric Number of hits (words matching query)
in the file.
Path Text/String Full physical path to the file,
including file name.
Rank Numeric Rank of row. Ranges from 0 to 1000.
Larger numbers indicate better
matches.
ShortFileName Text/String Short (8.3) file name.
Size Numeric Size of file, in bytes.
VPath Text/String Full virtual path to file, including
file name. If more than one possible
path, then the best match for the
specific query is chosen.
Write Date/Time Last time file was written.
Troubleshooting
REFERENCES For more information about working
with the Windows 2000 Indexing Service, click the following article numbers to
view the articles in the Microsoft Knowledge Base: 185985
(http://support.microsoft.com/kb/185985/
)
Using Index Server to query and
display META TAG information
256276
(http://support.microsoft.com/kb/256276/
)
Error
message: There is no catalog
229282
(http://support.microsoft.com/kb/229282/
)
ASP
code is visible when you view source of an Index Server results
page
| Article Translations
|
Back to the top
