简体   繁体   English

管理界面中的Solr默认查询不起作用

[英]Solr Default Query in Admin UI does not work

I am changing the default query for the UI in solrconfig.xml but it does not change the default query in the Admin UI. 我正在solrconfig.xml中更改UI的默认查询,但它不会更改Admin UI中的默认查询。 It says legacy config but I don't know where else I should change it to refresh the admin UI. 它说的是旧版配置,但我不知道我应该在哪里更改它以刷新管理界面。 I have reloaded the collection and restarted Solr. 我已经重新加载了集合并重新启动了Solr。

 <!-- Legacy config for the admin interface -->
  <admin>
    <defaultQuery>*:*</defaultQuery>
  </admin>

Any ideas? 有任何想法吗?

您可以通过编辑webapp的/ tpl目录中的query.html文件来更改此设置。

<textarea name="q" id="q" title="The query string.">*:*</textarea>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM