Search or set up your Solr home directory

I follow this tutorial on setting up django-haystack and solr: http://django-haystack.readthedocs.org/en/latest/tutorial.html

I clicked a stumbling block here:

If you use the Solr backend, you have an extra step. Solrs configuration is XML based, so you need to manually restore the schemas. You must run first. /manage.py build_solr_schema, delete the XML in the Solrs schema.xml file and restart the Solr server.

Where is my schema.xml file located? He says that it should be in the Solr home directory and in the .conf folder. But where is the Solr home directory and / or how do I configure its location?

Note: Solr noob is here - ultimately just trying to get a search on the site

+4
source share
1 answer

Solr House is a place where you can find schema.xml and solrconfig.xml , as well as some other files depending on the text analysis used (dictionaries for the stem, stop words, etc.) and where your index is created by default .

There are several ways to configure solr home, as it is outside the servlet container:

  • solr.solr.home java property (most used)
  • java: comp / env / solr / home for JNDI lookup

You can either check the configuration of the servlet container, or go to the Solr administration page http://host:port/solr/admin , which will display the actual location of the solr location along with other information about starting the solr instance.

+3
source

All Articles