我在我的中定义了以下查询solrconfig.xml
:
<requestHandler name="/defaultSearch" class="solr.SearchHandler">
<!-- Adds filters to all queries-->
<lst name="appends">
<str name="fq">-DELETED:true</str>
</lst>
<lst name="defaults">
<!-- See http://wiki.apache.org/solr/DisMaxQParserPlugin -->
<str name="defType">edismax</str>
<str name="echoParams">explicit</str>
<str name="df">text</str>
<!-- As dismax is used, 0.00 = is pure dismax , 1.00 = sum -->
<float name="tie">1.00</float>
<!-- Query Fields - Search fileds with its height -->
<str name="qf">
DocumentDisplayName^10 DocumentName^9
DocumentContent^5 DocumentDescription^3 DocumentTAGS^8
</str>
<!-- Phrase Field - frases fields used on quer as phrase >> "" -->
<str name="pf">
DocumentDisplayName^10 DocumentName^9
DocumentContent^5 DocumentDescription^3 DocumentTAGS^8
</str>
<!-- See http://wiki.apache.org/solr/DisMaxQParserPlugin -->
<str name="mm">
2<-1 5<-2 6<90%
</str>
<!-- Phrase whitespace ignore -->
<int name="ps">10</int>
</lst>
</requestHandler>
它工作得很好,但是,它只是忽略了我的停用词和同义词文件。
我不明白发生了什么,也不知道如何解决它。有什么帮助吗?