CoveoForSitecoreFilterExpression
CoveoForSitecoreFilterExpression
This component represents a filter expression created from the Sitecore Rules engine.
Options
scAdvancedFilter
A raw filter to be added to the query.
The default value is undefined
.
<div class="CoveoForSitecoreFilterExpression" data-sc-advanced-filter='@myfield==myvalue'></div>
scFilterScopeNode
Specifies a Filter Scope node generated by the Coveo Framework to be parsed and added to the query.
Coveo Hive translates rules entered in the Sitecore Rules engine into a parsable node that’s set in the markup of the option.
While it would be possible to replicate this structure, you’re strongly encouraged only to use this option with translated rules.
The default value is undefined
.
This node was generated by checking the “Exclude bucket folders in results” and the “Exclude media folders in results” in the Search Interface Properties.
<div class="CoveoForSitecoreFilterExpression" data-sc-filter-scope-node='{"advanced" : {"type" : "not" , "operand" : {"type" : "field" , "fieldName" : "_template" , "operator" : {"name" : "==" , "value" : 1},"fieldValueType" : {"name" : "string" , "value" : 3},"fieldValues" : ["ADB6CA4F03EF4F47B9AC9CE2BA53FF97" , "FE5DD82648C6436DB87A7C4210C7413B"]}}}'></div>
scScopeToTab
Specifies the tab on which to apply the filter scope.
If left undefined
, the filter scope is applied regardless of the current tab.
The default value is undefined
.
<div class="CoveoForSitecoreFilterExpression" data-sc-scope-to-tab='MyExternalContentTabId'></div>
Sample
<div class="CoveoForSitecoreFilterExpression"></div>