The search and indexing configuration files
This topic describes the configuration files that are related to search and indexing. Sitecore ships with the following files:
The \App_Config\Sitecore\ContentSearch
folder contains these files:
Sitecore.ContentSearch.DefaultConfigurations.Core.config
Sitecore.ContentSearch.DefaultConfigurations.config
Sitecore.ContentSearch.Heartbeat.config
Sitecore.ContentSearch.Solr.DefaultIndexConfiguration.config
Sitecore.ContentSearch.Solr.Index.Core.config
Sitecore.ContentSearch.Solr.Index.Master.config
Sitecore.ContentSearch.Solr.Index.Web.config
Sitecore.ContentSearch.config
Sitecore.ContentSearch configuration file
The Sitecore.ContentSearch.config
file has the following elements that you can specify:
Index element |
Description |
---|---|
|
Specifies event handlers for |
|
Runs necessary initialization processes, such as EventHub registration and warm-up queries for your index. You can extend this class or add additional hooks. |
|
Specifies all pipeline processors related to search and indexing. |
|
Specifies the manager class controlling the search result boosting logic. |
|
Specifies the search manager and provider classes. |
|
Specifies the interval at which indexing occurs. |
|
Specifies settings, such as parallel indexing, maximum search results, and date format. |
|
Specifies handlers for indexing events. |
Default index configuration file
The default index configuration file has the following elements that you can specify:
Index element |
Description |
---|---|
|
Allows you to exclude fields from the index when the |
|
Allows you to exclude items that are based on specific templates from the index. Template inheritance is checked if |
|
Allows you to specify which fields to include in the index when the |
|
Allows you to only include items that are based on specific templates in the index. Template inheritance is checked if |
|
Allows you to map a Sitecore field to an index and store it appropriately. Add a |
|
Allows you to map a Sitecore field type to a type within the index. Add a |
|
This field map allows you to take full control over how your data is stored in the index, in terms of both data type and format. It is a schema list that defines the data type a Sitecore item can be cast to and its formatting, for example: RequestResponse
|
|
The document builder class processes all the fields within Sitecore’s items and prepares data for storage within the index. You can override the document builder to modify how that data is prepared and apply any additional logic that might be required. |
|
A collection of all the possible converters for the platform. Converters allow converting a complex Sitecore object to an index, and vice-versa. |
|
Specifies which update strategy to use. |
|
Maps a field type by name to a strongly typed implementation of the field type. For example, html maps to an HTML field. |
|
Specifies key values that can be used in a search. |
|
Settings for index configuration. |
|
Settings used if no custom settings are available for an index. |
|
A Boolean flag that decides whether or not to index all fields. The default value is When set to When set to |
|
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. |
|
Specifies custom query processing for a named field. |
|
Excludes items from the index based on template type. Excludes specific fields from the index, if |
|
Includes items from the index based on template type, if |
|
Enables you to format the way that field values are stored in the index, remove inbuilt Sitecore fields, and store computed fields. |