I’m having an issue trying to create a Full Text Index on a database that was just created by Lotusscript.
The issue is that the FT index is not created, no Notes Errors are thrown, but the following is written to the Notes Log:
08/18/2008 11:56:42 AM Agent Manager: Full text operations on database ‘db.nsf’ which is not full text indexed. This is extremely inefficient.
A bit odd considering the only full text operation I am performing is to create one.
Here is the script that calls the agent to create the index:
Set template = New NotesDatabase(ServerName, “template.ntf”)
Set newDb = template.CreateFromTemplate(ServerName, “db.nsf”, True)
Set agent = newDB.GetAgent(“CreateFTIndex”)
If agent.RunOnServer() <> 0 Then
msgbox "Unable to create FTIndex. Agent Failed"
End If
Here is the code in the agent (less the error handler and declarations):
Set db = sess.CurrentDatabase
Call db.CreateFTIndex(2, False)