Notification class

Notification class

The base class for all notifications to the index. This class also contains methods for creating notification objects.

Learn more

The Notification type exposes the following members:

Methods

Method Description
create_rename_notification Creates a rename notification for an indexed document that has been renamed and should not be reindexed during the next update operation.

Example

from groupdocs.search.common import Notification

old_document_path = "old.docx"
new_document_path = "new.docx"

notification = Notification.create_rename_notification(old_document_path, new_document_path)
result = index.notify(notification)
print("Notification applied:", result)

See Also