Starting an Incremental Rescan

Note

Indexing Service is no longer supported as of Windows XP and is unavailable for use as of Windows 8. Instead, use Windows Search for client side search and Microsoft Search Server Express for server side search.

 

This code segment uses the GetCatalogByName method of the gCiAdmin AdminIndexServer object to create CiCatalog, a CatAdm object. It then uses the GetScopeByPath method of the CiCatalog CatAdm object to create CiScope, a ScopeAdm object for the selected scope. It then uses the Rescan method of the CiScope ScopeAdmobject with False specified to perform an incremental rescan the selected scope. The StartIncRescan procedure is called whenever the option to perform an incremental rescan of the scope is selected on the form.

Private Sub StartIncRescan()
...
    Dim CiCatalog As Object
    Dim CiScope As Object

    Set CiCatalog = ISAdminForm.gCiAdmin.GetCatalogByName(CatName)
    Set CiScope = CiCatalog.GetScopeByPath(ScopeName)

    CiScope.Rescan False
...
End Sub