OpenWGA 7.9 - TMLScript reference

Lucene
Method :

updateIndex()

On object Lucene
Usage Run lucene index update immediately
Description This method runs the lucene index updater immediately which will process all currently pending indexing requests. The method returns after the indexing is completed and the index up-to-date. If the indexing does not finish within a timeout of 10 seconds it throws an exception.

Use this method to let the current process stops execution until the the lucene index is up-to-date again, for example if you modified a content document and the process should not continue until the changes were indexed.

Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events