Make a Sitecore Field Facetable
Make a Sitecore Field Facetable
A facet field can be used to create facets.
It’s also required if you want to use a Sitecore field in a query with a comparator different than equals
(such as contains
or ends with
) in the Rule Set Editor.
To configure a Sitecore field as facetable
-
Open the
Coveo.SearchProvider.Custom.config
file with a text editor. -
In the
fieldMap/fieldNames
section, add a new element like the following (you must replacemysitecorefield
with the name of the Sitecore field):<fieldType fieldName="mysitecorefield" isFacet="true" settingType="Coveo.Framework.Configuration.FieldConfiguration, Coveo.Framework" />
NoteThe
fieldMap/fieldNames
element is located in thedefaultIndexConfiguration
element. Field settings defined in thedefaultIndexConfiguration
element are applied to all indexes that reference thedefaultIndexConfiguration
element. To apply field configurations on a specific index, see Manage Fields for a Specific Index. -
Save your changes.
-
To synchronize these field settings changes into your search indexes, an indexing action must be performed. Alternatively, the
/coveo/api/index/v1/indexes/synchronize
API POST call can be used.
You can combine isFacet
with the other settings presented in this section.