Skip to content

Instantly share code, notes, and snippets.

@moskinson
Created November 20, 2013 15:39
Show Gist options
  • Select an option

  • Save moskinson/7565198 to your computer and use it in GitHub Desktop.

Select an option

Save moskinson/7565198 to your computer and use it in GitHub Desktop.
schema.xml Solr Lucene, create a strField without accents, not a TextField tokenized
<fieldType name="string_without_accents" class="solr.TextField" >
<analyzer type="index">
<tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.ASCIIFoldingFilterFactory"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.ASCIIFoldingFilterFactory"/>
</analyzer>
</fieldType>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment