2
我在solrconfig.xml
定義以下查詢:RequestHandler與edismax忽略同義詞和停用詞
<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>
它工作得很好,但是,它只是無視我的禁用詞和同義詞文件。
我無法理解發生了什麼,也不知道如何解決它。 有什麼幫助嗎?
編輯
Query used, result (with debug=true) and the interesting part of schema.xml
您的架構配置如何?你發射了什麼疑問?給我們更多的例子。 – Jayendra 2013-03-05 03:41:45
我已更新該問題。感謝您的幫助,並對信息不足感到抱歉。 – caarlos0 2013-03-05 12:43:26