lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shalin Shekhar Mangar <shalinman...@gmail.com>
Subject Re: Polish Stemmer
Date Wed, 02 Sep 2009 15:36:56 GMT
On Wed, Sep 2, 2009 at 8:10 PM, David Espinosa <espixxl@gmail.com> wrote:

> My problem appears when I try to create a Polish stemmed index. There isn’t
> a Snowball implementation for Polish, but I found a lucene one:
>
> http://www.getopt.org/stempel/index.html#distrib
>
> I included the jar into Solr lib folder  and included the filter into the
> appropriate  fieldtype (<filter
> class="org.getopt.stempel.lucene.StempelFilter" />)  but  when I run the
> server this error appears:
>
> GRAVE: *org.apache.solr.common.SolrException*: Error instantiating class:
> 'org.getopt.stempel.lucene.StempelFilter'
>

You'd need to create a factory class which implements Solr's
TokenFilterFactory or extends BaseTokenFilterFactory which creates the
StempelFilter. Then specify the factory class in schema.xml

-- 
Regards,
Shalin Shekhar Mangar.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message