I don't think Solr ships with Korean Tokenizer, does it?

If you are using a 3rd party one, you need to give full class name,
not just solr.Korean... And you need the library added in the lib
statement in solrconfig.xml (at least in Solr 4).

Regards,
   Alex.
Personal website: http://www.outerthoughts.com/
Current project: http://www.solr-start.com/ - Accelerating your Solr proficiency


On Thu, Jul 10, 2014 at 3:23 PM, Poornima Jay
<poornima...@rocketmail.com> wrote:
> I have defined the fieldtype inside the fields section.  When i checked the 
> error log i found the below error
>
> Caused by: java.lang.ClassNotFoundException: solr.KoreanTokenizerFactory
>
> SEVERE: org.apache.solr.common.SolrException: analyzer without class or 
> tokenizer & filter list
>
>
> Do i need to add any libraries for koreanTokenizer?
>
> Regards,
> Poornima
>
>
> On Thursday, 10 July 2014 1:03 PM, Alexandre Rafalovitch <arafa...@gmail.com> 
> wrote:
>
>
>
> Double check your xml file that you don't - for example - define your
> fieldType outside of fields section. Or maybe you have exception
> earlier about some component in the type definition.
>
> This is not about Korean language, it seems. Something more
> fundamentally about XML config.
>
> Regards,
>    Alex.
> Personal website: http://www.outerthoughts.com/
> Current project: http://www.solr-start.com/ - Accelerating your Solr 
> proficiency
>
>
>
> On Thu, Jul 10, 2014 at 2:26 PM, Poornima Jay
> <poornima...@rocketmail.com> wrote:
>> Hi,
>>
>> Anyone tried to implement korean language in solr 3.6.1. I define the field
>> as below in my schema file but the fieldtype is not working.
>>
>> <fieldType name="text_kr" class="solr.TextField" positionIncrementGap="1000"
>>>
>>       <analyzer type="index">
>>         <tokenizer class="solr.KoreanTokenizerFactory"/>
>>         <filter class="solr.KoreanFilterFactory" hasOrigin="true"
>> hasCNoun="true"  bigrammable="true"/>
>>         <filter class="solr.LowerCaseFilterFactory"/>
>>         <filter class="solr.StopFilterFactory" ignoreCase="true"
>> words="stopwords_kr.txt"/>
>>       </analyzer>
>>       <analyzer type="query">
>>         <tokenizer class="solr.KoreanTokenizerFactory"/>
>>         <filter class="solr.KoreanFilterFactory" hasOrigin="false"
>> hasCNoun="false"  bigrammable="false"/>
>>         <filter class="solr.LowerCaseFilterFactory"/>
>>         <filter class="solr.StopFilterFactory" ignoreCase="true"
>> words="stopwords_kr.txt"/>
>>       </analyzer>
>>     </fieldType>
>>
>> Error : Caused by: org.apache.solr.common.SolrException: Unknown fieldtype
>> 'text_kr' specified on field product_name_kr
>>
>> Regards,
>> Poornima
>>

Reply via email to