我已经安装了solr 4.9。我一直在使用文件夹
中包含的schema.xml... \ solr4.9.0 \示例\ solr的\ collection1 \ CONF
我想包括西班牙语词干。 我试过的是添加以下代码,其中架构具有西班牙语字段类型
<!-- Spanish -->
<fieldtype name="textTypeWithStemming" class="solr.TextField">
<analyzer type="index">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords_es.txt" enablePositionIncrements="true"/>
<filter class="solr.SnowballPorterFilterFactory" language="Spanish"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords_es.txt" enablePositionIncrements="true"/>
<filter class="solr.HunspellStemFilterFactory" dictionary="es_ES.dic" affix="es_ES.aff" ignoreCase="true" />
<filter class="solr.SnowballPorterFilterFactory" language="Spanish"/>
</analyzer>
</fieldtype>