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.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" includeForFreeTextSearch="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.
-
Rebuild your indexes.
NotePerforming a POST request to
/coveo/api/index/v1/indexes/synchronizeisn’t enough for the change to be effective. A rebuild is required.
You can combine includeForFreeTextSearch with the other settings presented in this section.