Product DocsMenu

Creating and Using a Sitecore Configuration File

When the Extract HTML Content source option is not selected, by default, all items and binary data in the scope of the Sitecore source will be indexed, but no referenced item is indexed. You can optionally create and use a configuration file with a Sitecore source to better control what is indexed.

The configuration file can specify:

  • Templates to ignore

  • Templates for which you want to ignore binary data

  • Templates for which you want to index items referenced by specific fields

To create a Sitecore configuration file

  1. Using an administrator account, connect to the Coveo Master server.

  2. Using a text editor:

    1. Create an XML file respecting the format illustrated in the following commented example.

      <?xml version="1.0" encoding="utf-8"?>
      <ConfigFile>
          <Include ignoreBinaryData="true"> <!-- Template for which you don't want to index the binary data. -->
              <Template>DAF085E8-602E-43A6-8299-038FF171349F</Template>
          </Include>
          <Include> <!-- Template on which you want to index the referenced item located in the field "Accessories" -->
              <Template>B072B7C7-6F3F-4316-B8D7-010629AEBEF1</Template>
              <ReferencedItem field="Accessories"/>
          </Include>
          <Ignore> <!-- Template you simply want to ignore. -->
              <Template>8FAC8E12-7459-43F8-97E8-1BC6840B9226</Template>
          </Ignore>
      </ConfigFile>  

      Note: One <Include> tag can contain more than one <Template> tag and one or more <ReferencedItem> tag.

    2. Save the file using a name of your choice in the [Index_Path]\Config folder.

      Example: C:\CES7\Config\MySitecore2Config.xml

  3. To instruct the source to use this configuration file, add the ConfigFilePath hidden parameter to the Sitecore source and use the filename and path where you saved the file as the value for the parameter (see Modifying Hidden Sitecore Source Parameters).

What's Next?

Configure and index a Sitecore source (see Configuring and Indexing a Sitecore Source).

People who viewed this topic also viewed