我试图用Django-haystack Beta 2.0.0来设置Solr 3.6.0。Solr找不到资源stopwords_en.txt
运行./manage.py build_solr_schema
并将schema.xml移动到conf目录后,访问http://localhost:8983/solr/admin
后,收到的错误与this thread中产生的错误完全相同。
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
在螺纹的底部,用户提及schema.xml中必须进行编辑,以匹配stopwords_en.txt到/示例/ solr的/ CONF /目录,我做到了无论是通过符号链接还是将所有stopwords.txt实例编辑到生成的schema.xml文件中的/solr/conf/stopwords_en.txt。然而,同样的问题仍然存在,给人一种略微不同的输出:
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
,我必须修改什么文件来解决这个问题?
为我工作...!+ 1 – mcacorner 2014-10-10 06:24:36