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"?>
          <Include ignoreBinaryData="true"> <!-- Template for which you don't want to index the binary data. -->
          <Include> <!-- Template on which you want to index the referenced item located in the field "Accessories" -->
              <ReferencedItem field="Accessories"/>
          <Ignore> <!-- Template you simply want to ignore. -->

      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