Created
August 9, 2014 22:04
-
-
Save lowedown/f53a42fdd34e3f67334f to your computer and use it in GitHub Desktop.
Minimal FieldMap Configuration
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
<fieldMap type="Sitecore.ContentSearch.FieldMap, Sitecore.ContentSearch"> | |
<fieldNames hint="raw:AddFieldByFieldName"> | |
<!-- Add custom fields here --> | |
<field fieldName="MyCustomField" storageType="YES" indexType="TOKENIZED" vectorType="NO" boost="4f" type="System.String" settingType="Sitecore.ContentSearch.LuceneProvider.LuceneSearchFieldConfiguration, Sitecore.ContentSearch.LuceneProvider" /> | |
<!-- System fields to allow correct mapping --> | |
<field fieldName="_uniqueid" storageType="YES" indexType="TOKENIZED" vectorType="NO" boost="1f" type="System.String" settingType="Sitecore.ContentSearch.LuceneProvider.LuceneSearchFieldConfiguration, Sitecore.ContentSearch.LuceneProvider"> | |
<analyzer type="Sitecore.ContentSearch.LuceneProvider.Analyzers.LowerCaseKeywordAnalyzer, Sitecore.ContentSearch.LuceneProvider" /> | |
</field> | |
<!-- If filtering by template --> | |
<field fieldName="_template" storageType="YES" indexType="TOKENIZED" vectorType="NO" boost="1f" type="System.GUID" settingType="Sitecore.ContentSearch.LuceneProvider.LuceneSearchFieldConfiguration, Sitecore.ContentSearch.LuceneProvider"> | |
<Analyzer type="Sitecore.ContentSearch.LuceneProvider.Analyzers.LowerCaseKeywordAnalyzer, Sitecore.ContentSearch.LuceneProvider" /> | |
</field> | |
</fieldNames> | |
</fieldMap> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure every GUID field used goes through the LowerCaseKeywordAnalyzer!