简体   繁体   English

django haystack solr:未创建索引文件

[英]django haystack solr: index file not being created

solr is not able to create index, get following error: solr无法创建索引,出现以下错误:

All documents removed.
Indexing 100 notes.
Failed to add documents to Solr: [Reason: None]
<html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"/>
<title>Error 404 NOT_FOUND</title></head><body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /solr/boatsite/update/. Reason:<pre>    NOT_FOUND</pre></p>
<hr /><i><small>Powered by    Jetty://</small></i>

any suggestions? 有什么建议么?

Answer is in Beta 2.0.0 docs under trouble shooting. 答案是在Beta 2.0.0文档中进行故障排除。 Was using a bad URL in settings.py for HAYSTACK CONNECTIONS. 在settings.py中使用错误的URL进行HAYSTACK连接。 Docs suggest test URL in browser if you get this error. 如果您收到此错误,文档会在浏览器中建议测试网址。 I was trying http://127.0.0.1:8983/solr/mysite ---should have been using http://127.0.0.1:8983/solr 我正在尝试http://127.0.0.1:8983/solr/mysite-应该使用http://127.0.0.1:8983/solr

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

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