Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我提交没有q参数的 solr 查询时,我得到空指针异常
q
# This works http://localhost:8991/solr/select?q=hello # This throws Null pointer exception http://localhost:8991/solr/select
但是当我使用 WebSolr 时,不带q参数的查询会返回所有文档(我假设 q 被分配给*:*)。是否有启用此行为的 solr 配置?
*:*
尝试这样的事情:
<requestHandler name="standard" class="solr.StandardRequestHandler" default="true"> <lst name="defaults"> <str name="q">*:*</str> </lst> </requestHandler>