Solved

How can I enable Unicode support in Apache Solr?

Posted on 2010-09-04
2
1,165 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Apache HTTP to HTTPS redirect please. 5 50
local dns 2 152
Hosting application in Apache and Tomcat 1 102
Zipping many files freeze my whole server through php 5 58
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
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…

808 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