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 includeForFreeTextSearch attribute can only be used with string fields (Single-Line Text, Multi-Line Text, etc.).

To configure a Sitecore field as free-text searchable

  1. Open the Coveo.SearchProvider.Custom.config file with a text editor.

  2. In the fieldMap/fieldNames element, add a new element like the following (you must replace mysitecorefield with the name of the Sitecore field):

     <fieldType fieldName="mysitecorefield" includeForFreeTextSearch="true" settingType="Coveo.Framework.Configuration.FieldConfiguration, Coveo.Framework" />
    

    The fieldMap/fieldNames element is located in the defaultIndexConfiguration element. Field settings defined in the defaultIndexConfiguration element are applied to all indexes that reference the defaultIndexConfiguration element. To apply field configurations on a specific index, see Manage Fields for a Specific Index.

  3. Save your changes.

  4. Rebuild your indexes.

    Performing 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.

What's Next for Me?