CommunityStateManager Component

In this article

Coveo for Salesforce 2.41 (May 2017)

The CommunityStateManager component is used to connect your Lightning search component to the Coveo Standalone Searchbox (see Adding the Coveo standalone search box).

As of the May 2017 release of Coveo for Salesforce (2.41), it’s included by default in the coveo-search-section section of your search page.

Options

enableLowercaseOperators

Performs the same function as the Querybox option of the same name (see Querybox - enableLowercaseOperators).

data-enable-lowercase-operators="false"

enablePartialMatch

Performs the same function as the Querybox option of the same name (see Querybox - enablePartialMatch).

data-enable-partial-match="false"

enableQuerySyntax

Performs the same function as the Querybox option of the same name (see Querybox - enableQuerySyntax).

data-enable-query-syntax="true"

enableQuestionMarks

Performs the same function as the Querybox option of the same name (see Querybox - enableQuestionMarks).

data-enable-question-marks="false"

enableWildcards

Performs the same function as the Querybox option of the same name (see Querybox - enableWildcards).

data-enable-wildcards="false"

partialMatchKeywords

Pro and Enterprise editions only

Performs the same function as the Querybox option of the same name (see Querybox - partialMatchKeywords).

data-partial-match-keywords="5"

partialMatchThreshold

Pro and Enterprise editions only

Performs the same function as the Querybox option of the same name (see Querybox - partialMatchThreshold).

data-partial-match-threshold="50%"

Methods

This component doesn’t offer any methods.

Usage

In a Lightning search component, in the coveo-search-section div of your search page, add a div with the CoveoCommunityStateManagement class, as such:

<div class="coveo-search-section">
    <div class="CoveoCommunityStateManager"></div>
</div>