[ 
https://jira.duraspace.org/browse/DS-1170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivan Masár updated DS-1170:
---------------------------

    Status: Volunteer Needed  (was: Received)
    
> 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.0, 1.8.2
>         Environment: windows 7 +PostgreSQL 9.1  /   Slackware 12.1+PostgreSQL 
> 9.1
>            Reporter: Gary LAM
>            Priority: Major
>              Labels: lucene
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira

------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to