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 Frederico Azeiteiro <Fr...@cision.com> on 2012/11/14 17:12:21 UTC

Error loading class solr.CJKBigramFilterFactory

Hi, 

 

I've been testing some CJK tokenizers and I manage to get acceptable
results using:

 

<fieldType name="text_cjk" class="solr.TextField"
positionIncrementGap="100">

                     <analyzer>

                       <tokenizer
class="solr.StandardTokenizerFactory"/>

                       <!-- normalize width before bigram, as e.g.
half-width dakuten combine  -->

                       <filter class="solr.CJKWidthFilterFactory"/>

                       <!-- for any non-CJK -->

                       <filter class="solr.LowerCaseFilterFactory"/>

                       <filter class="solr.CJKBigramFilterFactory"/>

                     </analyzer>

    </fieldType>

 

The tests have been done using SOLR 3.5.0 on TomCat7.

 

Fo make some further testing I installed SOLR 3.5.0 using default Jetty
server. 

When tried to start SOLR using the same schema I get:

 

SEVERE: org.apache.solr.common.SolrException: Error loading class
'solr.CJKBigramFilterFactory'

SEVERE: org.apache.solr.common.SolrException: Error loading class
'solr.CJKWidthFilterFactory'

 

Should these classes com on v. 3.5.0 by default? 

Do I need to install anything or copy any lib?

 

Thank you all.

Frederico

 


RE: Error loading class solr.CJKBigramFilterFactory

Posted by Frederico Azeiteiro <Fr...@cision.com>.
:)
Just installed 3.6.1 and its working just fine. 

Something should be wrong with my tomcat/solr install.

Thank you Robert.

//Frederico
 


-----Mensagem original-----
De: Robert Muir [mailto:rcmuir@gmail.com] 
Enviada: quarta-feira, 14 de Novembro de 2012 19:18
Para: solr-user@lucene.apache.org
Assunto: Re: Error loading class solr.CJKBigramFilterFactory

I'm sure. I added it to 3.6 ;)

You must have something funky with your tomcat configuration, like an exploded war with different versions of jars or some other form of jar hell.

On Wed, Nov 14, 2012 at 9:32 AM, Frederico Azeiteiro <Fr...@cision.com> wrote:
> Are you sure about that?
>
> We have it working on:
>
> Solr Specification Version: 3.5.0.2011.11.22.14.54.38 Solr 
> Implementation Version: 3.5.0 1204988 - simon - 2011-11-22 14:54:38 
> Lucene Specification Version: 3.5.0 Lucene Implementation Version: 
> 3.5.0 1204988 - simon - 2011-11-22 14:46:51 Current Time: Wed Nov 14 
> 17:30:07 WET 2012 Server Start Time:Wed Nov 14 11:40:36 WET 2012
>
> ??
>
> Thanks,
> Frederico
>
>
> -----Mensagem original-----
> De: Robert Muir [mailto:rcmuir@gmail.com]
> Enviada: quarta-feira, 14 de Novembro de 2012 16:28
> Para: solr-user@lucene.apache.org
> Assunto: Re: Error loading class solr.CJKBigramFilterFactory
>
> On Wed, Nov 14, 2012 at 8:12 AM, Frederico Azeiteiro <Fr...@cision.com> wrote:
>> Fo make some further testing I installed SOLR 3.5.0 using default 
>> Jetty server.
>>
>> When tried to start SOLR using the same schema I get:
>>
>>
>>
>> SEVERE: org.apache.solr.common.SolrException: Error loading class 
>> 'solr.CJKBigramFilterFactory'
>
> This filter was added in 3.6, so its expected that it wouldnt be found.

Re: Error loading class solr.CJKBigramFilterFactory

Posted by Robert Muir <rc...@gmail.com>.
I'm sure. I added it to 3.6 ;)

You must have something funky with your tomcat configuration, like an
exploded war with different versions of jars or some other form of jar
hell.

On Wed, Nov 14, 2012 at 9:32 AM, Frederico Azeiteiro
<Fr...@cision.com> wrote:
> Are you sure about that?
>
> We have it working on:
>
> Solr Specification Version: 3.5.0.2011.11.22.14.54.38
> Solr Implementation Version: 3.5.0 1204988 - simon - 2011-11-22 14:54:38
> Lucene Specification Version: 3.5.0
> Lucene Implementation Version: 3.5.0 1204988 - simon - 2011-11-22 14:46:51
> Current Time: Wed Nov 14 17:30:07 WET 2012
> Server Start Time:Wed Nov 14 11:40:36 WET 2012
>
> ??
>
> Thanks,
> Frederico
>
>
> -----Mensagem original-----
> De: Robert Muir [mailto:rcmuir@gmail.com]
> Enviada: quarta-feira, 14 de Novembro de 2012 16:28
> Para: solr-user@lucene.apache.org
> Assunto: Re: Error loading class solr.CJKBigramFilterFactory
>
> On Wed, Nov 14, 2012 at 8:12 AM, Frederico Azeiteiro <Fr...@cision.com> wrote:
>> Fo make some further testing I installed SOLR 3.5.0 using default
>> Jetty server.
>>
>> When tried to start SOLR using the same schema I get:
>>
>>
>>
>> SEVERE: org.apache.solr.common.SolrException: Error loading class
>> 'solr.CJKBigramFilterFactory'
>
> This filter was added in 3.6, so its expected that it wouldnt be found.

RE: Error loading class solr.CJKBigramFilterFactory

Posted by Frederico Azeiteiro <Fr...@cision.com>.
Are you sure about that?

We have it working on:

Solr Specification Version: 3.5.0.2011.11.22.14.54.38
Solr Implementation Version: 3.5.0 1204988 - simon - 2011-11-22 14:54:38
Lucene Specification Version: 3.5.0
Lucene Implementation Version: 3.5.0 1204988 - simon - 2011-11-22 14:46:51
Current Time: Wed Nov 14 17:30:07 WET 2012
Server Start Time:Wed Nov 14 11:40:36 WET 2012

??

Thanks,
Frederico 


-----Mensagem original-----
De: Robert Muir [mailto:rcmuir@gmail.com] 
Enviada: quarta-feira, 14 de Novembro de 2012 16:28
Para: solr-user@lucene.apache.org
Assunto: Re: Error loading class solr.CJKBigramFilterFactory

On Wed, Nov 14, 2012 at 8:12 AM, Frederico Azeiteiro <Fr...@cision.com> wrote:
> Fo make some further testing I installed SOLR 3.5.0 using default 
> Jetty server.
>
> When tried to start SOLR using the same schema I get:
>
>
>
> SEVERE: org.apache.solr.common.SolrException: Error loading class 
> 'solr.CJKBigramFilterFactory'

This filter was added in 3.6, so its expected that it wouldnt be found.

Re: Error loading class solr.CJKBigramFilterFactory

Posted by Robert Muir <rc...@gmail.com>.
On Wed, Nov 14, 2012 at 8:12 AM, Frederico Azeiteiro
<Fr...@cision.com> wrote:
> Fo make some further testing I installed SOLR 3.5.0 using default Jetty
> server.
>
> When tried to start SOLR using the same schema I get:
>
>
>
> SEVERE: org.apache.solr.common.SolrException: Error loading class
> 'solr.CJKBigramFilterFactory'

This filter was added in 3.6, so its expected that it wouldnt be found.