Search code examples
djangosolrdjango-haystack

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 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?


Solution

  • 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