Examples: LastFTIndexed property (NotesDatabase - LotusScript®)

  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
  2. 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