This property specifies the amount of host resources used for searching.
Syntax
ISearchServer.PerformanceLevel
Remarks
PerformanceLevel has a range of from 1, which runs Search in the background, to 5, which dedicates all of the host machine's resources to Search.
Example
The following example displays the level of system resources dedicated to searching a catalog.
Option Explicit
On Error Resume Next
Dim objSearchAdmin, objSearchServer, PerfLevel
Set objSearchAdmin = CreateObject("Search.SearchAdmin.1")
Set objSearchServer = objSearchAdmin.SearchServer
PerfLevel = objSearchServer.PerformanceLevel
Select Case PerfLevel
Case 1
Wscript.Echo "Search runs in the background"
Case 2
Wscript.Echo "Search runs at a low priority"
Case 3
Wscript.Echo "Search runs at a medium priority"
Case 4
Wscript.Echo "Search runs at a high priority"
Case 5
Wscript.Echo "Host resources are dedicated to Search"
End Select
'Release objects
Set objSearchServer = Nothing
Set objSearchAdmin = Nothing
See Also