You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Norskog, Lance" <la...@divvio.com> on 2007/11/29 05:47:50 UTC
Schema class configuration syntax
Hi-
What is the <filter> element in an <analyzer> element that will load
this class:
org.apache.lucene.analysis.cn.ChineseFilter
This did not work:
<filter class="org.apache.lucene.analysis.cn.ChineseFilter" />
This is in Solr 1.2.
Thanks,
Lance Norskog
Re: Schema class configuration syntax
Posted by Ryan McKinley <ry...@gmail.com>.
Norskog, Lance wrote:
> Hi-
>
> What is the <filter> element in an <analyzer> element that will load
> this class:
>
> org.apache.lucene.analysis.cn.ChineseFilter
>
> This did not work:
>
> <filter class="org.apache.lucene.analysis.cn.ChineseFilter" />
>
> This is in Solr 1.2.
>
the class needs to point to a FilterFactory (not a Filter)
1.3-dev adds FilterFactories for all the lucne contrib fiters. Using
1.2, add a jar file with this class and you should be all set:
http://svn.apache.org/repos/asf/lucene/solr/trunk/src/java/org/apache/solr/analysis/ChineseFilterFactory.java
ryan