0

我在 solr 5.3 中使用 haystack 为我的 django 应用程序创建了一个核心并尝试这样做python manage.py rebuild_index,它只是给出了这个错误消息。这部分/update/?commit=true对我来说看起来很奇怪。我尝试手动将其更改为/update?commit=true,但仍然无法正常工作。在浏览器中,它只是说 404。有人对此有任何想法吗?谢谢!

无法清除 Solr 索引:无法连接到位于“ http://localhost:8983/solr/#/my_core/update/?commit=true ”的服务器,您确定 URL 正确吗?在浏览器中检查它可能会有所帮助: HTTPConnectionPool(host='localhost', port=8983): Max retries exceeded with url: /solr/ (Caused by : [Errno 111] Connection denied)

4

1 回答 1

0

标准 HTTP URL 中 a之后的任何部分#都是锚点,用于在客户端上使用。因此它永远不会被传输到服务器,这意味着您最终会发出请求http://localhost:8983/solr/- 这可能不是您要查询的 URL。

只是http://localhost:8983/solr/my_core/update?commit=true应该工作。

于 2015-10-02T20:51:49.560 回答