作者:mobiledu2502862177 | 来源:互联网 | 2023-05-19 13:56
ImtryingtosetupSolr3.6.0withDjango-haystackBeta2.0.0.我正在尝试用Django-haystackBeta2.0.0来设置S
I'm trying to setup Solr 3.6.0 with Django-haystack Beta 2.0.0.
我正在尝试用Django-haystack Beta 2.0.0来设置Solr 3.6.0。
After running ./manage.py build_solr_schema
and moving schema.xml to the conf directory, upon visiting http://localhost:8983/solr/admin
, I receive an error exactly like the one produced in this thread.
跑后。/管理。py build_solr_schema和moving schema。xml到conf目录,访问http://localhost:8983/solr/admin时,我收到的错误与在此线程中生成的错误完全相同。
org.apache.solr.common.SolrException: No cores were created, please check the logs for errors
未创建内核,请检查日志中是否有错误
java.lang.RuntimeException: Can't find resource 'stopwords_en.txt' in classpath or 'solr/./conf/', cwd=/home/randall/startupsearch_live/apache-solr-3.6.0/example
. lang。运行时异常:无法找到资源的stopwords_en。txt'在类路径或'solr/。/ conf /”,慢性消耗病= / home /兰德尔/ startupsearch_live / apache-solr-3.6.0 /例子
At the bottom of the thread, a user mentions that schema.xml must be edited to match stopwords_en.txt to the /example/solr/conf/ directory, which I did both through a symbolic link and by editing all instances of stopwords.txt to /solr/conf/stopwords_en.txt in the generated schema.xml file. However, the same error persists, giving a slightly different output:
在线程的底部,用户会提到这个模式。必须编辑xml以匹配stopwords_en。txt到/example/solr/conf/目录,我通过符号链接和编辑所有stopwords实例来实现。txt / solr / conf / stopwords_en。生成模式中的txt。xml文件。但是,相同的错误仍然存在,输出略有不同:
java.lang.RuntimeException: Can't find resource '/solr/conf/stopwords_en.txt' in classpath or 'solr/./conf/', cwd=/home/randall/startupsearch_live/apache-solr-3.6.0/example
. lang。运行时异常:无法找到资源'/solr/conf/stopwords_en。txt'在类路径或'solr/。/ conf /”,慢性消耗病= / home /兰德尔/ startupsearch_live / apache-solr-3.6.0 /例子
What file must I edit to fix this problem?
我需要编辑什么文件来解决这个问题?
6 个解决方案