Make a Sitecore field free-text searchable
Make a Sitecore field free-text searchable
You can make the content of a field searchable so that the next time you perform a query, its content is searched and matching results are returned.
The |
To configure a Sitecore field as free-text searchable
-
Open the
Coveo.SearchProvider.Custom.config
file with a text editor. -
In the
fieldMap/fieldNames
element, add the<fieldType>
element below. You must replacemysitecorefield
with the Sitecore field name (not the Translated Name).<fieldType fieldName="mysitecorefield" includeForFreeTextSearch="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.
-
Rebuild your indexes.
NotePerforming a POST call to
/coveo/api/index/v1/indexes/synchronize
isn’t enough for the change to be effective. A rebuild is required.
You can combine includeForFreeTextSearch
with the other settings presented in this section.