繁体   English   中英

SOLR:没有可用的内核

[英]SOLR: No cores available

尝试通过Java连接到我的本地Solr Server 5.4.0

public class Test {
public static void main(String[] args) throws SolrServerException, IOException{

//  ArrayList<String> sellers = Util.readFile("sellersBP.csv", true);

    SolrClient solr = new HttpSolrClient("http://localhost:8983/solr/#/techproducts/");
     QueryResponse resp = solr.query("techproducts",new SolrQuery("*:*"));

}
}

但是,我收到了带有一堆HTML标签的错误消息,并在其中显示。 Exception in thread "main" org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr/#/techproducts : Expected mime type application/octet-stream but got text/html.

No cores available Go and create one

这很奇怪,因为我使用的是示例solr示例,它在我的UI中创建了一个称为techproducts的核心。 有什么建议吗?

Solr用户界面

网址

在此处输入图片说明

URL http://localhost:8983/solr/#/techproducts/具有本地锚(位于#后面的所有内容),该锚仅对浏览器本身可用(从未发送到服务器)。 管理员界面中的JavaScript使用此功能从正确的核心中检索信息。

用于访问核心的实际 URL为http://localhost:8983/solr/techproducts/

暂无
暂无

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

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