THIS IS ARCHIVED DOCUMENTATION

CoveoForSitecoreLocalExpression

This component adds filters for the current instance to the query.

It registers a handler in the onSitecoreContextInitialization event triggered by the CoveoForSitecoreExpressions component.

Options

scFilterOnCurrentLanguage

Specifies whether the query should filter the results based on the current language.

Setting this parameter to true adds an expression that filter out documents that are not in the current language.

The default value is undefined.

<div class="CoveoForSitecoreLocalExpression" data-filter-on-current-language='true'></div>

scFilterOnLatestVersion

Specifies whether the query should filter the results based on the latest version.

Setting this parameter to true adds an expression that filters out documents that are not the latest version of an item.

The default value is undefined.

<div class="CoveoForSitecoreLocalExpression" data-filter-on-latest-version='true'></div>

Sample

<div class="CoveoForSitecoreLocalExpression"></div>