我有添加同义词的问题..一个同义词工作,其他不...我不知道它是如何工作的。 =>
和,
之间的区别在哪里
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>