同义词文件错误解析

时间:2015-10-21 10:15:06

标签: java solr

我有添加同义词的问题..一个同义词工作,其他不...我不知道它是如何工作的。 =>,之间的区别在哪里 schema.xml中

<analyzer type="index">
    <tokenizer class="solr.WhitespaceTokenizerFactory"/>
    <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" />               
    <filter class="solr.WordDelimiterFilterFactory"/>       
    <filter class="solr.LowerCaseFilterFactory"/>   
    <filter class="solr.SynonymFilterFactory" tokenizerFactory="solr.StandardTokenizerFactory" synonyms="premorfologiksynonyms.txt" ignoreCase="true" expand="true"/>   
    <filter class="solr.MorfologikFilterFactory" dictionary="MORFOLOGIK" />
    <filter class="solr.SynonymFilterFactory" tokenizerFactory="solr.StandardTokenizerFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>    
  </analyzer>
  <analyzer type="query">
    <tokenizer class="solr.WhitespaceTokenizerFactory"/>
    <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" />
    <filter class="solr.WordDelimiterFilterFactory"/>              
    <filter class="solr.LowerCaseFilterFactory"/>
    <filter class="solr.SynonymFilterFactory" tokenizerFactory="solr.StandardTokenizerFactory" synonyms="premorfologiksynonyms.txt" ignoreCase="true" expand="true"/>   
    <filter class="solr.MorfologikFilterFactory" dictionary="MORFOLOGIK" />
    <filter class="solr.SynonymFilterFactory" tokenizerFactory="solr.StandardTokenizerFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
  </analyzer>

0 个答案:

没有答案