Make a Sitecore field facetable
Make a Sitecore field facetable
A facet field can be used to create facets.
Configuring a Sitecore field as facetable is also required if you want to use that 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.configfile with a text editor. -
In the
fieldMap/fieldNameselement, add the<fieldType>element below. Replacemysitecorefieldwith the Sitecore field name (not the Translated Name).<fieldType fieldName="mysitecorefield" isFacet="true" settingType="Coveo.Framework.Configuration.FieldConfiguration, Coveo.Framework" />NoteThe
fieldMap/fieldNameselement is located in thedefaultIndexConfigurationelement. Field settings defined in thedefaultIndexConfigurationelement are applied to all indexes that reference thedefaultIndexConfigurationelement. 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/synchronizeAPI POST request can be used.
You can combine isFacet with the other settings presented in this section.