Index update

Hi, everyone:

Anyone knows how to check the index of db is updated? My case is if user modify or add data to doc, the index has not been updated yet. I need to give user message says “the index has not been updated.”

Any help, I appreciate!

Subject: index update

LastFTIndexed property

  1. This script gets the date that the current database was last full-text indexed. For example, the LastFTIndexed property might return 10/30/95 6:36:18 PM.

Dim session As New NotesSession

Dim db As NotesDatabase

Dim indexDate As Variant

Set db = session.CurrentDatabase

indexDate = db.LastFTIndexed

  1. This script checks whether the current database has been modified since the time it was last full-text indexed. If so, it updates the index.

Dim session As New NotesSession

Dim db As NotesDatabase

Set db = session.CurrentDatabase

If ( db.LastModified > db.LastFTIndexed ) Then

Call db.UpdateFTIndex( False )

End If