The search and indexing configuration files

Abstract

Describes the configuration files that are related to search and indexing.

This topic describes the configuration files that are related to search and indexing. The following files are shipped with Sitecore CMS 8.0. They are in the Website\App_Config\Include folder.

FB3EA38605184CA7B300659B7806FEDB.png

The Sitecore.ContentSearch.config file has the following elements that you can specify:

Index element

Description

<events>

Specifies event handlers for indexing:start, indexing:start:remote, indexing:end, and indexing:end:remote events.

<hooks>

Runs necessary initialization processes, such as EventHub registration and warmup queries for you index. You can extend this class or add additional hooks.

<pipelines>

Specifies all pipeline processors related to search and indexing.

<boostingManager>

Specifies the manager class controlling the search result boosting logic.

<searchManager>

Specifies the search manager and provider classes.

<scheduling>

Specifies the interval at which indexing will occur.

<settings>

Specifies settings, such as parallel indexing, maximum search results, and date format.

<commands>

Specifies handlers for indexing events.

The default index configuration file has the following elements that you can specify:

Index element

Description

<indexUpdateStrategies>

Specifies which update strategy will be used.

<databasePropertyStore>

Specifies key values that can be used in a search.

<configuration>

Settings for index configuration.

<DefaultIndexConfiguration>

Settings used if no custom settings are available for an index.

<IndexAllFields>

Default value is true.

<Analyzer>

The Lucene Standard Analyzer is specified by default. A custom analyzer might speed up searches.

<fieldMap>

Enables you to map a Sitecore field name to the index and store it in an appropriate way, including original value storage, boost value, and data type.

<virtualFieldProcessors>

Specifies custom query processing for a named field.

<exclude>

Excludes items from the index based on template type.

Excludes specific fields from the index, if IndexAllFields is set to true.

<include>

Includes items from the index based on template type, if IndexAllFields is set to false.

<fields>

Enables you to format the way that field values are stored in the index, remove inbuilt Sitecore fields, and store computed fields.