Created
March 17, 2018 05:44
-
-
Save SitecoreCpok/0076f3a0f4f0c7b65b86b30d4e182076 to your computer and use it in GitHub Desktop.
This file contains 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 ContentDelivery or ContentManagement" search:require="solr"> | |
<contentSearch> | |
<configuration type="Sitecore.ContentSearch.ContentSearchConfiguration, Sitecore.ContentSearch"> | |
<indexes hint="list:AddIndex"> | |
<index id="custom_content_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider"> | |
<param desc="name">$(id)</param> | |
<param desc="core">$(id)</param> | |
<param desc="propertyStore" ref="contentSearch/indexConfigurations/databasePropertyStore" param1="$(id)" /> | |
<configuration ref="contentSearch/indexConfigurations/defaultSolrIndexConfiguration"> | |
<documentOptions ref="contentSearch/indexConfigurations/defaultSolrIndexConfiguration/documentOptions"> | |
<include hint="list:AddIncludedTemplate"> | |
<Page>{5272B85F-0F34-6HFF-652F-245193G3EG67}</Page> | |
</include> | |
<indexAllFields>true</indexAllFields> | |
<fields hint="raw:AddComputedIndexField"> | |
<field fieldName="ComputedField1">Practice.Domain.Search.ComputedFields.ComputedField1, Practice.Domain</field> | |
<field fieldName="ComputedField2">Practice.Domain.Search.ComputedFields.ComputedField2, Practice.Domain</field> | |
</fields> | |
</documentOptions> | |
<fieldMap ref="contentSearch/indexConfigurations/defaultSolrIndexConfiguration/fieldMap"> | |
<fieldNames hint="raw:AddFieldByFieldName"> | |
<field fieldName="newfield1" returnType="text" storageType="YES" indexType="TOKENIZED" vectorType="NO" boost="1f" /> | |
<field fieldName="newfield2" returnType="text" storageType="YES" indexType="TOKENIZED" vectorType="NO" boost="1f" /> | |
</fieldNames> | |
</fieldMap> | |
</configuration> | |
<strategies hint="list:AddStrategy"> | |
<strategy ref="contentSearch/indexConfigurations/indexUpdateStrategies/onPublishEndAsync"/> | |
</strategies> | |
<commitPolicyExecutor type="Sitecore.ContentSearch.CommitPolicyExecutor, Sitecore.ContentSearch"> | |
<policies hint="list:AddCommitPolicy"> | |
<policy type="Sitecore.ContentSearch.TimeIntervalCommitPolicy, Sitecore.ContentSearch" /> | |
</policies> | |
</commitPolicyExecutor> | |
<locations hint="list:AddCrawler"> | |
<crawler type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch"> | |
<Database>web</Database> | |
<Root>/sitecore/content/home</Root> | |
</crawler> | |
</locations> | |
<enableItemLanguageFallback>false</enableItemLanguageFallback> | |
<enableFieldLanguageFallback>false</enableFieldLanguageFallback> | |
</index> | |
</indexes> | |
</configuration> | |
</contentSearch> | |
</sitecore> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment