Help and Support
 

powered byLive Search

How to Filter Certain Folders from Query Results

Retired KB ArticleThis article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
Article ID:173966
Last Review:January 7, 2000
Revision:1.0
This article was previously published under Q173966

SUMMARY

Queries issued against Index Server may return pointers to information that you do not wish users to see, such as scripts or cgi-bin folders.

MORE INFORMATION

To keep Index Server from returning queries to documents in certain folder, you can do one of the following:
If the folder is a virtual root you can tell Index Server not to index it. To do this, go the Index Server administration page, and select the View/Update Indexing of Virtual Roots button. Then clear the virtual root you do not wish to index.
If the folder is not a virtual root, you must add an entry to the CiRestriction in the .idq file. If you know the path to the folder you want to exclude from the result set, add the following CiRestriction to the .idq file:
      cirestriction=(%cirestriction%) and not #vpath
      \virtualroot\foldername.

						
This will pass the cirestriction from the query form; however, it will not return any documents in the /virtualroot/subfolder directory.

If copies of the folder exist in multiple locations, you can modify the query to the following:
      cirestriction=(%cirestriction%) and not #vpath *\foldername

						
The leading * tells Index Server to look for this folder through out the web, not just in a specific location.
NOTE: On Windows 2000 NTFS volumes, the attribute FILE_ATTRIBUTE_NOT_CONTENT_INDEXED can be set for directories and files, so that the direcotries and files are not indexed by the Windows 2000 Indexing Service.

APPLIES TO
Microsoft Index Server 1.1 Standard Edition

Back to the top

Keywords: 
kbhowto KB173966

Article Translations

 

Other Support Options

  • Need More Help?
    Contact a Support professional by E-mail, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.