Q
Problem solve Get help with specific problems with your technologies, process and projects.

Can LotusScript update a database's index?

Is it possible to update a database's index via LotusScript instead of manually updating it via the database properties tab? The index is already created, but I would like a user to update documents that are not indexed manually.
To update the full text index, you need to have at least Designer access to the database. You can set the full text indexing to Immediate, and the server will reindex the database shortly after documents are created or modified, depending on the indexing load on the server. You can update the full text index using LotusScript. The following example comes from the help document entitled "LastFTIndexed property."

This script checks if 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

Do you have comments on this Ask the Expert Q&A? Let us know.

This was last published in March 2004

Dig Deeper on Lotus Notes Domino Application Development

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchExchange

SearchContentManagement

Close