ChineseAnalyzer not work in DSpace 1.8
--------------------------------------

                 Key: DS-1170
                 URL: https://jira.duraspace.org/browse/DS-1170
             Project: DSpace
          Issue Type: Bug
          Components: DSpace API
    Affects Versions: 1.8.2, 1.8.0
         Environment: windows 7 +PostgreSQL 9.1  /   Slackware 12.1+PostgreSQL 
9.1
            Reporter: Gary LAM
            Priority: Major


in dspace.conf, if set
search.analyzer = org.apache.lucene.analysis.cn.ChineseAnalyzer

if will fail with #ant fresh-install .....

[java] 2012-05-09 17:02:18,195 ERROR org.dspace.search.DSIndexer @ Unable t
o create index directory: c:\dspace180/search
     [java] 2012-05-09 17:02:18,203 FATAL org.dspace.search.DSIndexer @ anonymou
s:no_context:no_search_analyzer:search.analyzer=org.apache.lucene.analysis.cn.Ch
ineseAnalyzer
     [java] java.lang.NoSuchMethodException: org.apache.lucene.analysis.cn.Chine
seAnalyzer.<init>(org.apache.lucene.util.Version)
     [java]     at java.lang.Class.getConstructor0(Class.java:2706)
     [java]     at java.lang.Class.getDeclaredConstructor(Class.java:1985)
     [java]     at org.dspace.search.DSIndexer.getAnalyzer(DSIndexer.java:635)
     [java]     at org.dspace.search.DSIndexer.openIndex(DSIndexer.java:914)
     [java]     at org.dspace.search.DSIndexer.<clinit>(DSIndexer.java:225)
     [java] java.lang.ExceptionInInitializerError
     [java] Caused by: java.lang.IllegalStateException: java.lang.NoSuchMethodEx
ception: org.apache.lucene.analysis.cn.ChineseAnalyzer.<init>(org.apache.lucene.
util.Version)
     [java]     at org.dspace.search.DSIndexer.getAnalyzer(DSIndexer.java:644)
     [java]     at org.dspace.search.DSIndexer.openIndex(DSIndexer.java:914)
     [java]     at org.dspace.search.DSIndexer.<clinit>(DSIndexer.java:225)
     [java] Could not find the main class: org.dspace.search.DSIndexer.  Program
 will exit.
     [java] Exception in thread "main"

If I don't set .ChineseAnalyzer before install,  ant build successful,  and 
then I edit the dspace.conf
set it to use ChineseAnalyzer,  same error message will got when use #dspace 
index-init



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.duraspace.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to