[opencms-dev] configuring search analyzer - Plz help!

Vikrama Sanjeeva viki.sanjeeva at gmail.com
Thu Jul 3 21:37:41 CEST 2008


Hi Matt,

  Thank you very much. It solved my problem and made my day :).

Take care!!

Bye,
Viki.

On Thu, Jul 3, 2008 at 12:09 AM, TechnoSophos <technosophos at gmail.com>
wrote:

> 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
> >
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20080703/073f50cd/attachment.htm>


More information about the opencms-dev mailing list