只需要在url中添加shards.info=true和shards=host:port/base_url[,host:port/base_url]
举例
http://localhost:8983/solr/media/select?q=title:"地球"&wt=json&indent=true&fl=title&shards.info=true&shards=localhost:8983/solr/media,localhost:8983/solr/game
注意:这会使后续所有查询的shards.info=true,如果后续查询不需要跨core,需要显式地添加shards.info=false

本文介绍了如何在不使用SolrCloud的情况下进行Solr跨Core查询。通过在URL中添加特定参数`shards.info=true`和`shards`,指定查询的Core地址,可以实现跨Core查询。例如:`http://localhost:8983/solr/media/select?q=title:"地球"&wt=json&indent=true&fl=title&shards.info=true&shards=localhost:8983/solr/media,localhost:8983/solr/game`。需要注意的是,此方法可能会使后续查询默认为跨Core,若不需要,需明确设置`shards.info=false`。"
113052258,10539131,Excel联动下拉菜单设置教程,"['Excel技巧', '数据输入', '表格工具', '数据管理']
906

被折叠的 条评论
为什么被折叠?



