Open topic with navigation

# Configure En Masse Scripting

The previous section describes how to set up a post-processing task whereby the script performs the required action on each match individually. You can also set up en masse scripting tasks whereby all the matches found by an Eduction task are passed into a single post-processing task, which can use this information to modify all the matches at the same time. For example, you might want to increase the score of all matches that appear near other matches and are therefore considered more reliable as matches.

To configure an en masse scripting task, add the `ProcessEnMasse` parameter to the configuration file section for the task and set it to `True`.

You must define a `processmatches` function in your script:

`function processmatches (matches)`

where `matches` is a Lua table of all the matches extracted by your Eduction task. Each match also includes a flag to indicate if the match should display in the output.

You must set up the script so that it iterates over each match in the table, performs the post-processing task on each match, and sets `setOutput` to `False` for matches that should be discarded. You can use the sample script that is provided with Eduction as a reference.

© Copyright 2013-2018 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm