solr +干草堆 + django 我应该在哪里放置 schema.xml?

发布于 2024-11-26 01:38:43 字数 445 浏览 5 评论 0原文

我刚刚为我正在处理的 Django 项目安装了 SolrHaystack。按照 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

维持三分热 2024-12-03 01:38:43

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

っ〆星空下的拥抱 2024-12-03 01:38:43

它与您创建的核心的细节有关。理想情况下,使用 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 core

Now you can see a new directory has been created as ./server/solr/haystack/conf which is where schema.xml should be copied into.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文