Skip to content

Instantly share code, notes, and snippets.

@RyanABailey
Last active March 2, 2016 01:26
Show Gist options
  • Select an option

  • Save RyanABailey/bcdd8d0ef639fb664ca7 to your computer and use it in GitHub Desktop.

Select an option

Save RyanABailey/bcdd8d0ef639fb664ca7 to your computer and use it in GitHub Desktop.
Lucene facet phrase
<fieldMap type="Sitecore.ContentSearch.FieldMap, Sitecore.ContentSearch">
<fieldNames hint="raw:AddFieldByFieldName">
<field fieldName="categoryfacet" 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>
</fieldNames>
</fieldMap>
<fields hint="raw:AddComputedIndexField">
<field fieldName="categoryfacet" storageType="yes" indexType="untokenized"
patch:after="field[last()]">MyProject.IndexCategory, MyProject
</field>
</fields>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment