I am using lotus script to create a document in a database - this works. The problem is that even once the database has been re-indexed, the document cannot be found using search.
For the result to appear when doing a search, I have to refresh the document using @Command function or open up the document and re-save it and then re-index the database again.
Any idea why this is so and how this can be solved.