How to Set Up the Notification IndexID: Q163469
|
This article explains how to set up the notification index, using Site Server 3.0 Content Deployment as the notification source.
Sub Usage
The end of the line is:
call Main
cscript setpropdest.vbs <catalogname> <search server name> c:\prop.NOTE: Your search server name is the one you added in step 3.
<siteserver dir>\data\search\projects\<catalog name>\search\drop.Please consult the Site Server online documentation for more information about creating a content deployment project.
cscript sssadmin.vbs add catalog /catalog:<catalog> /build:false /search:trueNOTE: This creates the directory structure for Content Deployment to replicate to.
Sub Usage
WScript.Echo "Usage: setpropdest <catalog> <search server>
<destinationdir>"
WScript.Quit(1)
end Sub
Sub Main
On Error Resume Next
if WScript.Arguments.Count <> 3 then
Usage
end if
Set objHost = WScript.CreateObject("Search.SearchAdmin.1")
if not IsObject(objHost) then
WScript.echo "Cannot connect to host"
WScript.Quit(1)
end if
Set objBuildServer = objHost.BuildServer
if not IsObject(objBuildServer) then
WScript.echo "Cannot connect to build server"
WScript.Quit(1)
end if
Set objBuildCatalogs = objBuildServer.BuildCatalogs
if not IsObject(objBuildCatalogs) then
WScript.echo "Cannot connect to catalogs"
WScript.Quit(1)
end if
Set objBuildCatalog = objBuildCatalogs.Item( WScript.Arguments(0) )
if not IsObject(objBuildCatalog) then
WScript.echo "Cannot obtain catalog " & WScript.Arguments(0)
WScript.Quit(1)
end if
Set objSearchServers = objBuildCatalog.SearchServers
if not IsObject(objSearchServers) then
WScript.echo "Cannot obtain Search Servers"
WScript.Quit(1)
end if
set objSearchServer = objSearchServers.Item( WScript.Arguments(1) )
if not IsObject(objSearchServer) then
WScript.echo "Cannot obtain Search Server : " &
WScript.Arguments(1)
WScript.Quit(1)
end if
wscript.echo "Search Server Name :" &
objSearchServer.Name
wscript.echo "Search Server Prop Destination :" &
objSearchServer.PropDestination
wscript.echo "Setting destination to : " & WScript.Arguments(2)
objSearchServer.PropDestination = WScript.Arguments(2)
wscript.echo "Search Server Prop Destination :" &
objSearchServer.PropDestination
End Sub
call Main
NOTE: The above sample code is provided for demonstration purposes only.
Additional query words:
Keywords : prodsitesrv3 prodsrch prodCD
Version : WinNT:3.0
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: July 19, 1999