如何解决自定义请求处理程序不适用于Apache Solrv8中的Qt Param
我在solrconfig.xml中创建了一个自定义请求处理程序,如下所示:
<requestHandler name="/mysearch" class="solr.SearchHandler">
<lst name="defaults">
<str name="echoParams">explicit</str>
<!-- Query settings -->
<str name="defType">edismax</str>
<str name="qf">
title^10.0
</str>
<str name="pf">
title^10.0 ph_title^5.0
</str>
<int name="ps">5</int>
<str name="mm">3<75% 9<50%</str>
<str name="q.alt">:</str>
<str name="rows">10</str>
<str name="fl">id,score</str>
<str name="mlt.fl">state_exact</str>
<str name="mlt.qf">
vertical^1000.0
</str>
<int name="mlt.count">10</int>
<int name="mlt.mintf">1</int>
<int name="mlt.mindf">10</int>
<int name="mlt.minwl">3</int>
<bool name="mlt.boost">true</bool>
<bool name="mlt.match.include">false</bool>
</lst>
<!-- append spellchecking to our list of components -->
<arr name="last-components">
<str>mysearch_spellcheck</str>
</arr>
</requestHandler>
但是当我调用此API时:
上面的请求处理程序没有被使用,而是使用默认的/ select处理程序,即使自定义是在qt中传递的。
但是,当我按下此键时:
它按预期使用自定义请求处理程序。
为什么即使给出qt,第一种情况也不采用自定义请求处理程序?
任何帮助将不胜感激,在此先感谢:)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。