I use django-haystack and I'm a little confused about where to put / solr, and these are the schema.xml, solr.xml and solrconfig.xml files.
I currently have / solr in the following longer path --- / home / mydir / Solr / apache-solr3.6.0 / example /
I am thinking about moving the guts to a level (getting rid of / apache - solr3.6.0 /), leaving --- / home / mydir / solr / example /
It seems that the Jetty feed is under the examples directory, so I decided to either change the name of the example directory to mysite or save a copy of example as mysite at the same level. Anyway, it ends with --- / home / mydir / solr / mysite /
I read somewhere that schema.xml, solr.xml and solrconfig.xml should be in the / conf directory in the "solr home" directory. So I think I should create --- / home / mydir / solr / mysite / conf and put my files there.
I added the following to the settings file:
HAYSTACK_CONNECTIONS = {
’default’: {
’ENGINE’: ’haystack.backends.solr_backend.SolrEngine’,
’URL’: ’http:
},
}
If I configure everything as described above, should everything work? If someone has a clean elegant setting that works and they would like to share --- I am very open to suggestions.
btw - I worked in the solr tutorial (so that solr works), and I installed haystack run syncdb (it seems like the haystack is ready to go too).
source
share