solr +干草堆 + django 我应该在哪里放置 schema.xml?
我刚刚为我正在处理的 Django 项目安装了 Solr
和 Haystack
。按照 this Haystack
教程我创建了一个 schema.xml 但我不确定将其放置在 Solr 安装中的何处。
我的 Solr
安装位于这样的目录中:/solr
并且我从 /solr/example< 启动
Solr
服务/code> 使用此命令 java -jar start.jar
。
有什么想法可以将 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.
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
.
Any ideas where to place that schema.xml and how to tell Solr to use it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Solr 在“Solr home”目录下的 ./conf 目录中查找 schema.xml。
请参阅此页面了解更多信息。
http://wiki.apache.org/solr/ConfiguringSolr
Solr looks for schema.xml in the ./conf directory under the "Solr home" directory.
See this page for more info.
http://wiki.apache.org/solr/ConfiguringSolr
它与您创建的核心的细节有关。理想情况下,使用 solr 的第一步是像这样创建核心
./bin/solr create -c haystack ,其中 haystack 是核心的名称
现在您可以看到新目录已创建为
./server/solr/haystack/conf
,其中应将schema.xml
复制到其中。It has to do with the details of the core your've created. Ideally the first step of using
solr
would be creating your core like this./bin/solr create -c haystack
where haystack is the name of your coreNow you can see a new directory has been created as
./server/solr/haystack/conf
which is whereschema.xml
should be copied into.