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."
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
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.
Dig Deeper on Lotus Notes Domino Application Development
Related Q&A from Brian Mahoney
Find out what types of calculations can be computed for a column in a Lotus Notes view and the best way to go about it with this expert response.continue reading
Find out why you can't use Formula language to include a doclink to a specific Lotus Notes view or database and need to use LotusScript instead.continue reading
Discover the reasons behind a Notes/Domino admistrator having trouble with disabled options in the "customize this view" section of his Lotus Notes ...continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.