Created
September 16, 2022 00:33
-
-
Save fluxdigital/d9a39fc4030ab384d1982c6b7d606a74 to your computer and use it in GitHub Desktop.
Config for fields
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration | |
xmlns:patch="http://www.sitecore.net/xmlconfig/" | |
xmlns:role="http://www.sitecore.net/xmlconfig/role/" | |
xmlns:search="http://www.sitecore.net/xmlconfig/search/"> | |
<sitecore role:require="Standalone or ContentManagement or ContentDelivery" search:require="solr"> | |
<contentSearch> | |
<indexConfigurations> | |
<blogPostSearchIndexConfiguration ref="contentSearch/indexConfigurations/defaultSolrIndexConfiguration"> | |
<fieldMap ref="contentSearch/indexConfigurations/defaultSolrIndexConfiguration/fieldMap"> | |
<fieldNames hint="raw:AddFieldByFieldName"> | |
<field fieldName="title" returnType="string" /> | |
<field fieldName="description" returnType="text" /> | |
</fieldNames> | |
</fieldMap> | |
<documentOptions type="Sitecore.ContentSearch.SolrProvider.SolrDocumentBuilderOptions, Sitecore.ContentSearch.SolrProvider"> | |
<indexAllFields>false</indexAllFields> | |
<include hint="list:AddIncludedField"> | |
<!-- Title --> | |
<fieldId>{2F16AB86-B0FA-4393-BA95-54521442E9C1}</fieldId> | |
<!-- Description --> | |
<fieldId>{6578FFCE-5942-47CB-A856-A66944CA0280}</fieldId> | |
</include> | |
</documentOptions> | |
<fieldReaders ref="contentSearch/indexConfigurations/defaultSolrIndexConfiguration/fieldReaders" /> | |
<indexFieldStorageValueFormatter ref="contentSearch/indexConfigurations/defaultSolrIndexConfiguration/indexFieldStorageValueFormatter" /> | |
<indexDocumentPropertyMapper ref="contentSearch/indexConfigurations/defaultSolrIndexConfiguration/indexDocumentPropertyMapper" /> | |
<documentBuilderType ref="contentSearch/indexConfigurations/defaultSolrIndexConfiguration/documentBuilderType" /> | |
</blogPostSearchIndexConfiguration> | |
</indexConfigurations> | |
</contentSearch> | |
</sitecore> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment