This read-only property specifies the list of mappings (IMappings interface) that specify from where a file is searched (the crawler access location) to where a file is displayed to site visitors (the display location).
Syntax
IBuildCatalog.Mappings
Example
The following example displays the mappings for all of the catalog definitions.
Option Explicit
On Error Resume Next
Dim objSearchAdmin, objBuildServer, objCatalogs, objCatalog, objMappings, objMapping
Set objSearchAdmin = CreateObject("Search.SearchAdmin.1")
Set objBuildServer = objSearchAdmin.BuildServer
Set objCatalogs = objBuildServer.BuildCatalogs
For Each objCatalog in objCatalogs
Set objMappings = objCatalog.objMappings
Wscript.Echo "objCatalog " & objCatalog.Name
If objMappings.Count = 0 Then
Wscript.Echo "has no mappings."
Else
For Each objMapping in objMappings
Wscript.Echo "maps " & objMapping.From & " to " _
& objMapping.To
Next
Wscript.Echo ""
End If
Next
'Release objects
Set objMapping = Nothing
Set objMappings = Nothing
Set objCatalog = Nothing
Set objCatalogs = Nothing
Set objBuildServer = Nothing
Set objSearchAdmin = Nothing
See Also
Extensions, IMappings Interface