问题描述
我刚刚为 Django Solr
和 Haystack
>我正在努力的项目。遵循 Haystack
教程我创建一个schema.xml,但我不知道将其放在Solr安装中。
I just installed Solr
and Haystack
for a Django
project I'm working on. Following this Haystack
tutorial I created a schema.xml but I'm not sure where to place it in the Solr installation.
我的 Solr
安装在这样的目录中: / solr
,我从开始
使用此命令 Solr
服务/ solr / example java -jar start.jar
。
My Solr
installation is in a directory like this: /solr
and I'm starting the Solr
service from /solr/example
with this command java -jar start.jar
.
任何想法在哪里放置该schema.xml以及如何告诉Solr使用它?
Any ideas where to place that schema.xml and how to tell Solr to use it?
推荐答案
Solr在Solr home目录下的./conf目录中查找schema.xml。
Solr looks for schema.xml in the ./conf directory under the "Solr home" directory.
查看此页面了解更多信息。
See this page for more info.
这篇关于solr + haystack + django我在哪里放置schema.xml?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!