Skip to content

Instantly share code, notes, and snippets.

@robdimarco
Created December 30, 2011 19:09
Show Gist options
  • Save robdimarco/1541071 to your computer and use it in GitHub Desktop.
Save robdimarco/1541071 to your computer and use it in GitHub Desktop.
Updated schema.xml with untokenized field
<fieldType name="untokenized" class="solr.TextField">
<analyzer>
<tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>
<fields>
<!-- ... -->
<field name="business_name_untokenized" stored="false" type="text_auto" multiValued="false" indexed="true"/>
</fields>
<copyField source="name_text" dest="name_untokenized" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment