Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1262
  • Last Modified:

How can I enable Unicode support in Apache Solr?

I want to enable the Unicode in Solr. Updating the index does not give me an error. But as soon as I try to search some Chinese text, I get an error. I have added the following line to my schema.

The following exception occurs as a result of adding the quoted filter:

org.apache.solr.common.SolrException: Error loading class 'solr.CollationKeyFilterFactory'
at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:375)
at org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:390)
at org.apache.solr.util.plugin.AbstractPluginLoader.create(AbstractPluginLoader.java:84)
at org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:141)
at org.apache.solr.schema.IndexSchema.readAnalyzer(IndexSchema.java:835)
<filter class="solr.CollationKeyFilterFactory" language="" strength="primary"/>

Open in new window

0
raheelasadkhan
Asked:
raheelasadkhan
1 Solution
 
samriCommented:
Hi,

I think unicode is support is already enabled in Apache.

#
# Specify a default charset for all content served; this enables
# interpretation of all content as UTF-8 by default.  To use the
# default browser choice (ISO-8859-1), or to allow the META tags
# in HTML content to override this choice, comment out this
# directive:
#
AddDefaultCharset UTF-8


http://www.seapine.com/kb/questions/1383/Configuring+Apache+to+Display+Unicode+Characters+in+TestTrack+Pro+Web

http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addcharset
http://httpd.apache.org/docs/2.2/mod/core.html#adddefaultcharset

Some links on Unicode support for Solaris:
http://developers.sun.com/dev/gadc/unicode/solaris/index.html
http://www.cl.cam.ac.uk/~mgk25/unicode.html#solaris
0
 
raheelasadkhanAuthor Commented:
Thanks.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now