Index Pipeline stages are used to create and modify PipelineDocument objects.Query Pipeline stages are used to modify Request objects
and Response objects.
Fusion associates a pipeline stage definition with a unique ID and stores the definition so that stages can be reused across pipelines and applications.
In addition to an ID, all stages have the following properties:
type (required): an enumeration, one of the defined Fusion pipeline stage types, e.g., “index-logging”. If the Fusion UI is used to define the stage, this property is filled in automatically.
label (optional) : a string field with a maximum length of 255 characters. The label is displayed on the Fusion UI.
skip (optional): a boolean value, If true, pipeline processing bypasses this stage altogether. The default is false.
condition (optional): a JavaScript expression that evaluates to true (1) or false (0).
If this condition evaluates to false, this stage is skipped. The default is true.
The first condition checks that the request parameter “fusion-user-name” is present and has the value “SuperUser”.
The second condition checks that the request parameter “isFusionPluginQuery” is not present.