[opencms-dev] configuring search analyzer - Plz help!
TechnoSophos
technosophos at gmail.com
Wed Jul 2 23:09:39 CEST 2008
The AraMorph class is not an analyzer. You need to use an object that
extends Analyzer.
Try gpl.pierrick.brihaye.aramorph.lucene.ArabicStemAnalyzer (or some
of the other analyzers in the lucene part of that package).
Matt
On Wed, Jul 2, 2008 at 2:22 PM, Vikrama Sanjeeva
<viki.sanjeeva at gmail.com> wrote:
> Hi all,
>
> I am trying to configure arabic analyzer for arabic data search in
> opencms using link: [7.0.4]
>
> http://www.bng-galiza.org/opencms/opencms/alkacon-documentation/documentation_search/configuration_analyzers.html
>
> for arabic analyzer with lucene, I am using
> gpl.pierrick.brihaye.aramorph.AraMorph
> [http://www.nongnu.org/aramorph/english/install.html]
>
> but when i do rebuild from, i get following error in opencms.log:
>
>
> ****************************************************
> Error while rebuilding search indexes: my_ar.
> org.opencms.search.CmsIndexException: Cannot load analyzer
> "gpl.pierrick.brihaye.aramorph.AraMorph".
> at
> org.opencms.search.CmsSearchManager.getAnalyzer(CmsSearchManager.java:1229)
> at
> org.opencms.search.CmsSearchIndex.getIndexWriter(CmsSearchIndex.java:478)
> at
> org.opencms.search.CmsSearchManager.updateIndex(CmsSearchManager.java:1564)
> at
> org.opencms.search.CmsSearchManager.rebuildIndexes(CmsSearchManager.java:779)
> at
> org.opencms.search.CmsSearchManager.cmsEvent(CmsSearchManager.java:354)
> at
> org.opencms.main.CmsEventManager.fireEventHandler(CmsEventManager.java:203)
> at org.opencms.main.CmsEventManager.fireEvent(CmsEventManager.java:126)
> at org.opencms.main.CmsEventManager.fireEvent(CmsEventManager.java:148)
> at org.opencms.main.OpenCms.fireCmsEvent(OpenCms.java:169)
> at
> org.opencms.workplace.tools.searchindex.CmsIndexingReportThread.run(CmsIndexingReportThread.java:128)
> Caused by: java.lang.ClassCastException:
> gpl.pierrick.brihaye.aramorph.AraMorph
> at
> org.opencms.search.CmsSearchManager.getAnalyzer(CmsSearchManager.java:1225)
> ... 9 more
> ****************************************************
>
> I have placed ArabicAnalyzer.jar, commons-collections.jar in
> \webapps\opencms\WEB-INF\lib but no success.
>
> ************opencms-search.xml*************
> <analyzer>
> <class>gpl.pierrick.brihaye.aramorph.AraMorph</class>
> <locale>ar</locale>
> </analyzer>
> ************opencms-search.xml*************
>
>
> Please help as i really need here :$.
>
> Thanks!!
>
> Bye,
> Viki.
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
More information about the opencms-dev
mailing list