solr分词测试失败

71 views
Skip to first unread message

Jack

unread,
Oct 4, 2012, 4:28:18 AM10/4/12
to mms...@googlegroups.com

schema.xml 中增加了这些fieldtype:

    <!-- MMSeg4j -->

    <fieldtype name="textComplex" class="solr.TextField" positionIncrementGap="100">

<analyzer>

<tokenizer class="com.chenlb.mmseg4j.solr.MMSegTokenizerFactory" mode="complex" dicPath="I:/java/projects/solr/dict"/>

</analyzer>

</fieldtype>

<fieldtype name="textMaxWord" class="solr.TextField" positionIncrementGap="100">

<analyzer>

<tokenizer class="com.chenlb.mmseg4j.solr.MMSegTokenizerFactory" mode="max-word" dicPath="I:/java/projects/solr/dict"/>

</analyzer>

</fieldtype>

<fieldtype name="textSimple" class="solr.TextField" positionIncrementGap="100">

<analyzer>

<tokenizer class="com.chenlb.mmseg4j.solr.MMSegTokenizerFactory" mode="simple" dicPath="I:/java/projects/solr/dict"/>

</analyzer>

</fieldtype>

mmseg4j-all-with-dic-1.9.0.v20120712-SNAPSHOT.jar也放到solr/WEB-INF/lib下
但分词测试总是失败,lib和配置应该都没问题,好像分词库没有读入一样,截图如下:


Reply all
Reply to author
Forward
0 new messages