Product Selector

Fusion 5.9
    Fusion 5.9

    Apply Rules Stage

    Table of Contents

    This stage looks up rules that have been deployed to the response rewriting are applied by the Modify Response with Rules stage later in the pipeline.

    See Rules for additional details about how to configure this set of features.

    This stage supports asynchronous processing.

    Although this stage is available without a Fusion AI license, it is only effective after creating rules in Fusion AI.

    Configuration

    When entering configuration values in the UI, use unescaped characters, such as \t for the tab character. When entering configuration values in the API, use escaped characters, such as \\t for the tab character.

    Look up and apply rules to the query

    skip - boolean

    Set to true to skip this stage.

    Default: false

    label - string

    A unique label for this stage.

    <= 255 characters

    condition - string

    Define a conditional script that must result in true or false. This can be used to determine if the stage should process or not.

    asyncConfig - Asynchronous Execution Config

    enabled - boolean

    Run the expensive data loading or processing part of this stage in a separate thread allowing the pipeline to continue executing. The results of this asynchronous execution can be merged into the pipeline request using a downstream "Merge Async Results" stage.

    Default: false

    asyncId - string

    A unique value to use as reference in downstream "Merge Async Results" stages.

    collection - string

    The collection to read rules from. Leave blank to use the default rules collection for the current application.

    handler - stringrequired

    Default: select

    method - stringrequired

    Default: POST

    Allowed values: GETPOST

    ruleLimit - string

    Max number of business rules to be triggered by the same query. The default rules matching limit is 100. This config overwrites "rows" param set in "Query Parameters" section

    Default: 100

    params - array[object]

    Additional query parameters to use when querying the rules collection. NOTE: "rows" parameter set here will be overwritten by the config in "Rule Triggering Limit" section

    object attributes:{key required : {
     display name: Parameter Name
     type: string
    }
    value : {
     display name: Parameter Value
     type: string
    }
    }

    subqueryRewritePipelineId - string

    Option to call a Fusion query pipeline to modify rule-retrieving subquery

    hierarchicalFilter - array[object]

    Specify hierarchical filter and delimiter, e.g. category: clothing/dress/cocktail

    object attributes:{field required : {
     display name: Field Name
     type: string
    }
    delimiter required : {
     display name: Field Delimiter
     type: string
    }
    }

    headers - array[object]

    object attributes:{key required : {
     display name: Parameter Name
     type: string
    }
    value : {
     display name: Parameter Value
     type: string
    }
    }

    useEmbeddedSolrServer - boolean

    If checked, then this stage will load the remote tagger collection into an embedded Solr to perform the lookup in memory. Only use this option if the tagger collection fits in the memory available to the Fusion API service.

    Default: false

    useOriginalQueryIfNoRulesMatch - boolean

    If checked, then this stage will try to match rules using the original query (un-tagged) sent into the tagger stage if available.

    Default: true

    matchPartialFilterQueries - boolean

    If checked, then this stage will trigger filter rules as long as there is one filter query in the query parameter that matches the filter specified in the rule.

    Default: true