This read-only property specifies document properties (ISearchSchema interface) that Search indexes or retrieves when building a catalog.
Syntax
IBuildCatalog.Schema
Example
The following example displays the categories that Search retrieves for the KMSampleCatalog2 catalog definition.
Option Explicit
On Error Resume Next
Dim objSearchAdmin, objBuildServer, objCatalogs, objCatalog, Schema, Columns, Column
Set objSearchAdmin = CreateObject("Search.SearchAdmin.1")
Set objBuildServer = objSearchAdmin.BuildServer
Set objCatalogs = objBuildServer.BuildCatalogs
Set objCatalog = objCatalogs("KMSampleCatalog2")
Set Schema = objCatalog.Schema
Wscript.Echo "objCatalog " & objCatalog.Name & " retrieves these categories:"
For Each Column in Schema.Columns
If IColumn.Retrieve Then Wscript.Echo " " & IColumn.Name
Next
'Release objects
Set Column = Nothing
Set Schema = Nothing
Set objCatalog = Nothing
Set objCatalogs = Nothing
Set objBuildServer = Nothing
Set objSearchAdmin = Nothing
See Also
ISearchSchema interface