【发布时间】:2015-05-30 10:34:25
【问题描述】:
我想做的是使用 Solr 索引文档。
我已经在 Windows 环境中安装并启动了 Solr 服务器,我正在尝试使用 SolrJ 进行索引。
但是,当我尝试将 solr 文档添加到服务器时,如下所示,它会导致错误
server.add(indexDoc);
错误
Error from server at http://localhost:8983/solr: Expected mime type application/octet-stream but got text/html
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /solr/update. Reason:
<pre> Not Found</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>
此问题的可能原因是什么。
【问题讨论】: