You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by BillB1951 <wj...@gmail.com> on 2012/04/18 06:08:00 UTC

Haystack - Solr recommended solr directory location

I'm using django-haystack and I am a little confused about where to put
/solr, and it's 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'm thinking about moving the guts up a level (getting rid of /apache-
solr3.6.0/) leaving --- /home/mydir/solr/example/

It looks like the Jetty servelet is all under the example directory, so my
thought is to either change the directory name "example" to "mysite", or
save a copy of "example" as "mysite" at the same level. In either case I end
up with --- /home/mydir/solr/mysite/

I read somewhere that schema.xml, solr.xml, and solrconfig.xml should be in
the /conf directory under the "solr home" directory. So I guess I should
create --- /home/mydir/solr/mysite/conf and place my files there.

I have added the following to my setting file:

HAYSTACK_CONNECTIONS = {
    ’default’: {
        ’ENGINE’: ’haystack.backends.solr_backend.SolrEngine’,
        ’URL’: ’http://127.0.0.1:8983/solr/mysite'
    },
}

If I set everything up as outlined above should things work? If someone has
a clean elegant setup that works and they'd like to share --- I'm very open
to suggestions.

Thank you for the help.

btw - I have worked through the solr tutorial (so solr is working), and I
have installed haystack run syncdb (so appears haystack is ready to go
also).


-----
BillB1951
--
View this message in context: http://lucene.472066.n3.nabble.com/Haystack-Solr-recommended-solr-directory-location-tp3919030p3919030.html
Sent from the Solr - User mailing list archive at Nabble.com.