How to Filter Certain Folders from Query Results

Last reviewed: January 20, 1998
Article ID: Q173966

The information in this article applies to:

  • Microsoft Index Server version 1.1

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.


Additional query words: uncheck
Version : WINNT: 1.1
Platform : winnt
Hardware : ALPHA x86
Issue type : kbhowto


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 20, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.