Previous in Contents Next in Contents

OnDataChange Method

This method informs Search of a document change.

Syntax

IGatherNotify.OnDataChange Advise, PhysicalAddress[, LogicalAddress]

Parameters

Advise

The change in the document:

Name Value Description
GTHR_CA_ADD 0 Add the document to the list of documents to index.
GTHR_CA_DELETE 1 Delete the document from the list of documents to index.
GTHR_CA_MODIFY 2 Update the entries for the document.

PhysicalAddress

The address where the file is located.

LogicalAddress

The address where the file is displayed to site visitors.

Remarks

You must call the Init method before you can call this method for the first time. The mapping of the PhysicalAddress to the LogicalAddress is similar to that done through the IMapping interface for crawling-based catalogs.

Example

See Creating an IGatherNotify Interface Object.

See Also

Init, IBuildCatalog.NotificationSource, IBuildCatalog.ProjectType


© 1997-2000 Microsoft Corporation. All rights reserved.