SharePoint Portal Server Portal Backup Files Are Indexed and Appear in Search Results

Article translations Article translations
Article ID: 314162 - View products that this article applies to.
This article was previously published under Q314162
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

SYMPTOMS

When you perform a search by using SharePoint Portal Server Service Pack 1 (SP1), simple searches may return an excessive amount of results that include many different file types.

CAUSE

This problem can occur because SharePoint Portal Server SP1 installs a Portal.backup folder in the Portal folder. The folder is indexed by default and has Everyone read permissions.

WORKAROUND

To work around this problem:
  1. Remove the Portal.backup folder.

    NOTE: Do not remove the Portal.backup folder until you update any customizations that may be removed after you apply SharePoint Portal Server SP1.
  2. Secure the Portal.backup folder so that only administrators or coordinators can view the Portal.backup folder.
  3. Turn off indexing of the Portal.backup folder. The following script turns off indexing of the folder. Save the script to a .vbs file to run the script:
Dim InfoNT, oWorkspaceFolder, oBackupFolder, oRS1, oRS2

 
Set InfoNT = CreateObject("WinNTSystemInfo")
Set oWorkspaceFolder = CreateObject("CDO.KnowledgeFolder")
Set oBackupFolder = CreateObject("CDO.KnowledgeFolder")

oWorkspaceFolder.DataSource.Open "http://" & InfoNT.ComputerName & "/SharePoint Portal Server/workspaces/"

Set oRS1 = CreateObject("ADODB.Recordset")
Set oRS2 = CreateObject("ADODB.Recordset")

Set oRS1 = oWorkspaceFolder.SubFolders 'Get list of workspaces on server

While Not oRS1.EOF 'Turn off indexing of Portal.Backup folder and sub folders
  if not oRS1.Fields("DAV:IsHidden") then 'Only process non-hidden folders in /SharePoint Portal Server/workspaces/ 
    SetNoIndex oRS1.Fields("DAV:href") & "/Portal/Portal.Backup"
    oBackupFolder.DataSource.Open oRS1.Fields("DAV:href") & "/Portal/Portal.Backup"
    Set oRS2 = oBackupFolder.SubFolders
    While Not oRS2.EOF
      SetNoIndex oRS2.Fields("DAV:href")
      oRS2.MoveNext
    Wend
    wscript.echo "Indexing disabled for " & oRS1.Fields("DAV:href") & "/Portal/Portal.Backup"
  End If
  oRS1.MoveNext
Wend


Sub SetNoIndex(strURL)
  Dim Rec, Conn, Flds
  Set Rec = CreateObject("ADODB.Record")
  Set Conn = CreateObject("ADODB.Connection")
 
  Conn.Provider = "ExOLEDB.DataSource"
  Conn.Open strURL
  Rec.Open replace(strURL, "", "%20"), Conn, 3

  Set Flds = Rec.Fields
  Flds("urn:schemas.microsoft.com:fulltextqueryinfo:noindex") = "True"
  Flds.Update
End Sub
				

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Properties

Article ID: 314162 - Last Review: February 27, 2014 - Revision: 2.2
APPLIES TO
  • Microsoft SharePoint Portal Server 2001 Service Pack 1
Keywords: 
kbnosurvey kbarchive kbbug KB314162

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com