I reducing the number of fields which get indexed in my site.
I looked at App_Config\Include\Sitecore.ContentSearch.Azure.DefaultIndexConfiguration.config
and see the section
<configuration
<sitecore>
<contentSearch>
<indexConfigurations>
<defaultCloudIndexConfiguration>
<documentOptions>
<exclude hint="list:AddExcludedField">
<__display_name>{B5E02AD9-D56F-4C41-A065-A133DB87BDEB}</__display_name>
Then I looked at Sitecore.XA.Foundation.Search.Azure.DefaultIndexConfiguration.config
(SXA 1.7.1 config file) and found this:
<configuration>
<sitecore>
<contentSearch>
<indexConfigurations>
<defaultIndexConfiguration>
<exclude hint="list:ExcludeField">
<LearnMoreTarget_A4270003 tag="{A4270003-480F-467A-BBEA-0D1B05B28656}">{A4270003-480F-467A-BBEA-0D1B05B28656}</LearnMoreTarget_A4270003>
What is the difference between excluding template fields within the documentOptions section vs excluding in the defaultIndexConfiguration section?
ExcludeField
onCloudIndexConfiguration
orSolrIndexConfiguration
. I do seeAddExcludedField
onIDocumentBuilderOptions
.ExcludeField
method insideProviderIndexConfiguration
which is marked as[Obsolete]
. It actually calls DocumentOptions.AddExcludedField so, in theory, should achieve the exact same thing.9.1.0 rev. 001564
dll andExcludeField
is no longer there