OpenWGA 7.2 - TMLScript reference

Method :


On object Lucene
Usage Removes the data of the last lucene query with activated result highlighting from the users session
Description The lucene functionality around highlighting consumes some memory on the users session as the data of found terms needs to be preserved while highlighting should be possible. If possible this data should be cleared using this method once the highlighting data is not needed any more to save system resources.

The highlighting data will be automatically cleared on the following conditions:
  • Another lucene query with activated highlighting is executed
  • The users session is invalidated by the JavaEE server

For backward compatibility there still is a method "removeLuceneQuery()" available on TMLContext whose use is discouraged since OpenWGA 5.3.

Allowed in script types
  • WebTML pages and normal WebTML actions