OpenWGA 7.7 - TMLScript reference

WGA
Method :

lucene([tmlContext])

On object WGA
Usage Returns a Lucene object providing functionalities related to fulltext search
Description As the Lucene object needs a TMLContext object as reference you may specify one as parameter. Omit it to retrieve a lucene object for the base context of the current script.
Parameters

tmlContext (TMLContext, optional):

A WebTML context that the lucene object should use. Omit it to use the current "this" object.

Return value Lucene object on the given context
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events