Thanks very much for the hints.

I have not got my metadata in the database, however I cannot search using 
Chinese words. The seach box returns nothing and the search term has turned to 
non-Chinese symbols.

What I did was enablingthe following item in the dspace.cfg file:

    search.analyzer = org.apache.lucene.analysis.cn.ChineseAnalyzer

Then I tried to do index-update as follows but got error relating to 
ChineseAnalyzer:

[C:\dspace\bin]dspace.bat index-update
Using DSpace installation in: C:\dspace
Started: 1355459073297
Ended: 1355459102597
Elapsed time: 29 secs (29300 msecs)
Exception: java.lang.NoSuchMethodException: org.apache.lucene.analysis.cn.Chines
eAnalyzer.<init>(org.apache.lucene.util.Version)
java.lang.IllegalStateException: java.lang.NoSuchMethodException: org.apache.luc
ene.analysis.cn.ChineseAnalyzer.<init>(org.apache.lucene.util.Version)
        at org.dspace.search.DSIndexer.getAnalyzer(DSIndexer.java:644)
        at org.dspace.search.DSIndexer.openIndex(DSIndexer.java:914)
        at org.dspace.search.DSIndexer.flushIndexingTaskQueue(DSIndexer.java:777
)


My DSpace Installation info:
version         :1.8.2 

platform        : Windows 7 32bit
JDK               : 1.6.0_37

What did I miss to enable search in Chinses (Traditional & Simplified ) search 
please?

Thank you in advance.

Regards,
-brian.t
University Library System
CUHK
  
    




________________________________
 From: helix84 <[email protected]>
To: brian.t <[email protected]> 
Cc: "[email protected]" <[email protected]> 
Sent: Thursday, 13 December 2012, 16:42
Subject: Re: [Dspace-tech] Error Importing UTF-8 encoded file (some Chinese 
Characters)..
 
On Thu, Dec 13, 2012 at 2:24 AM, brian.t <[email protected]> wrote:
> So, if the metadata content does have the special characters such as '&' (or
> symbols) it will have to be enclosed in quotes or use HTML code, e.g. &amp;
> for '&'. Is that correct?

That has really nothing to do with DSpace, but with XML. You can't use
quotes, you have to properly encode these characters (called
entities), so yes, & would be encoded as &amp;. DSpace will get back
&. You can use standard XML tools to check for XML validity, for
example xmllint.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to