Solved

How can I enable Unicode support in Apache Solr?

Posted on 2010-09-04
2
1,173 Views
Last Modified: 2012-05-10
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
Comment
Question by:raheelasadkhan
2 Comments
 
LVL 15

Accepted Solution

by:
samri earned 500 total points
ID: 33759668
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
 

Author Closing Comment

by:raheelasadkhan
ID: 33760399
Thanks.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question