You cannot use regular expressions when you add or when you exclude directories in a catalog (832023)



The information in this article applies to:

  • Microsoft Index Server, version 3.1, when used with:
    • the operating system: Microsoft Windows Server 2003, Web Edition
    • the operating system: Microsoft Windows Server 2003, Standard Edition
    • the operating system: Microsoft Windows Server 2003, Enterprise Edition

SYMPTOMS

When you add a directory to your index server catalog by specifying a regular expression (such as a wildcard character [*]) in the directory path in the Indexing Service console, you receive the following error message:
Invalid directory name

CAUSE

The Indexing Service on Microsoft Windows Server 2003 does not validate regular expressions that are added through the Microsoft Management Console (MMC).

STATUS

This behavior is by design.

WORKAROUND

To work around this problem, use wildcard expression by means of the registry to include directories in a catalog or to exclude directories from a catalog.

Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry

  1. Stop Indexing Service.
  2. Start Registry Editor.
  3. Locate the following key in the registry:

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ContentIndex\Catalogs\your_catalog\Scopes

  4. Right-click Scopes, and then click New String Value.
  5. Add the location path with the wildcard character (for example, C:\myfolder\*).
  6. Quit Registry editor.
  7. Locate your catalog in the MMC, find the Directories folder, and then double-click the folder that contains the location path that you created in step 5.
  8. In the Add Directory dialog box, click No under the Include in Index? option.
  9. Repeat steps 4 through 8 for all other location paths that contain wildcard characters.
  10. Restart Indexing Service.

STATUS

This behavior is by design.

Modification Type:MinorLast Reviewed:5/4/2005
Keywords:kbprb KB832023 kbAudDeveloper