开发者

solr + haystack + django where do I place schema.xml?

I just installed Solr and Haystack for a Django project I'm working on. Following this Haystack tutorial I cr开发者_JS百科eated 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?


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜