Rather than specifying an analyzer within <fieldtype …​ class="solr.TextField">, the solr.CollationField and solr.ICUCollationField field type classes provide this functionality. solr.ICUCollationField, which is backed by the ICU4J library, provides more flexible configuration, has more locales, is significantly faster, and requires less memory and less index space, since its keys are smaller than those produced by the JDK implementation that backs solr.CollationField.

solr.ICUCollationField is included in the Solr analysis-extras contrib - see solr/contrib/analysis-extras/README.txt for instructions on which jars you need to add to your SOLR_HOME/lib in order to use it.

CommentFileSizeAuthor
#3 3009943.patch4.62 KBmkalkbrenner
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mkalkbrenner created an issue. See original summary.

mkalkbrenner’s picture

Issue summary: View changes
mkalkbrenner’s picture

Status: Active » Needs review
FileSize
4.62 KB

  • mkalkbrenner committed 0d98988 on 8.x-2.x
    Issue #3009943 by mkalkbrenner: Use ICUCollationField for sorting...
  • mkalkbrenner committed 5901ac1 on 8.x-2.x
    Issue #3009943 by mkalkbrenner: Use ICUCollationField for sorting...
mkalkbrenner’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.