Using Solr instead of Lucene
Version: 8.2
If you choose to use Solr instead of Lucene, you should first follow the Solr setup steps for SCpbCS. Then add the following snippet into the defaultSolrIndexConfiguration node:
RequestResponse
<fieldMap type="Sitecore.ContentSearch.FieldMap, Sitecore.ContentSearch">
<fieldNames hint="raw:AddFieldByFieldName">
<field fieldName="customerfavorites" storageType="NO" indexType="TOKENIZED"
vectorType="NO" boost="1f" returnType="text"
settingType="Sitecore.ContentSearch.SolrProvider.SolrSearchFieldConfiguration,
Sitecore.ContentSearch.SolrProvider"/>
<field fieldName="stafffavorites" storageType="NO"
indexType="TOKENIZED" vectorType="NO" boost="1f" returnType="text"
settingType="Sitecore.ContentSearch.SolrProvider.SolrSearchFieldConfiguration,
Sitecore.ContentSearch.SolrProvider"/>
<field fieldName="customeraveragerating"
storageType="NO" indexType="TOKENIZED" vectorType="NO" boost="1f"
returnType="double"
settingType="Sitecore.ContentSearch.SolrProvider.SolrSearchFieldConfiguration,
Sitecore.ContentSearch.SolrProvider"/>
</fieldNames>
</fieldMap>
Then add the following snippets to the schema file that is generated by Sitecore for Solr:
In the fields section:
RequestResponse
<dynamicField name="*_tm" type="text_general" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_sci" type="string_ci" indexed="true" stored="true" />
In the types node:
RequestResponse
<fieldType name="string_ci" class="solr.TextField" sortMissingLast="true" omitNorms="true">
<analyzer>
<tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory" />
</analyzer>
</fieldType>