THIS IS ARCHIVED DOCUMENTATION
Making a Sitecore Field Free-Text Searchable
Making 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.
- Open the
Coveo.SearchProvider.Custom.config
file with a text editor. -
In the
fieldMap/fieldNames
element, add a new element like the following (you must replacemysitecorefield
with the name of the Sitecore field):<fieldType fieldName="mysitecorefield" includeForFreeTextSearch="true" settingType="Coveo.Framework.Configuration.FieldConfiguration, Coveo.Framework" />
The
includeForFreeTextSearch
attribute can only be used with string fields (Single-Line Text, Multi-Line Text, etc.).The
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 Managing Fields for a Specific Index. - 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 (see Synchronize Coveo for Sitecore Configuration).