> I got the error below after adding CJKTokenizer to schema.xml.  I
> checked the constructor of CJKTokenizer, it requires a Reader parameter,
> I guess that's why I get this error, I searched the email archive, it
> seems working for other users. Does anyone know what is the problem?


CJKTokenizerFactory that I am using is appended.

On Mon, 18 Jun 2007 21:35:37 -0700
"Xuesong Luo" <[EMAIL PROTECTED]> wrote:

> Hi, 
> 
> I got the error below after adding CJKTokenizer to schema.xml.  I
> checked the constructor of CJKTokenizer, it requires a Reader parameter,
> I guess that's why I get this error, I searched the email archive, it
> seems working for other users. Does anyone know what is the problem?
> 
>  
> 
> Thanks
> 
> Xuesong
> 
>  
> 
>  
> 
> 2007-06-18 17:09:29,369 ERROR [STDERR] Jun 18, 2007 5:09:29 PM
> org.apache.solr.core.SolrException log
> 
> SEVERE: org.apache.solr.core.SolrException: Error instantiating class
> class org.apache.lucene.analysis.cjk.CJKTokenizer
> 
>             at org.apache.solr.core.Config.newInstance(Config.java:229)
> 
>             at
> org.apache.solr.schema.IndexSchema.readTokenizerFactory(IndexSchema.java
> :619)
> 
>             at
> org.apache.solr.schema.IndexSchema.readAnalyzer(IndexSchema.java:593)
> 
>             at
> org.apache.solr.schema.IndexSchema.readConfig(IndexSchema.java:331)
> 
>             at
> org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:71)
> 
>  
> 
>  
> 
>  
> 
> Schema.xml
> 
>     <fieldtype name="itext" class="solr.TextField"
> positionIncrementGap="100" >
> 
>       <analyzer>
> 
>         <tokenizer class="org.apache.lucene.analysis.cjk.CJKTokenizer"/>
> 
> 
>         <filter class="solr.LowerCaseFilterFactory"/>
> 
>       </analyzer>
> 
>     </fieldtype>
> 
>  
> 

-- 
Toru Matsuzawa

Reply via email to