PipelineContext Component

In this article

The PipelineContext component is a JavaScript component that allows you to add custom context to the query pipeline (see Coveo Component Pipeline Context).

Options

This component provides the same options as the Pipeline Context component (see Coveo Component Pipeline Context).

Methods

This component provides the same methods as the Pipeline Context component (see Coveo Component Pipeline Context).

Usage

This component is meant to be configured with a script tag containing JSON content.

When saving custom Salesforce context, you might get a Salesforce error saying your property doesn’t exist. To prevent this, you’re encouraged to encode your curly braces with { for { and } for }.

<script class="CoveoPipelineContext" type="text/x-context">
    {
        "userLanguage" : "&#123;!user__language&#125;"
    }
</script>