Getting started example - trouble getting haystack and solr working together

187 views
Skip to first unread message

BillB1951

unread,
Apr 25, 2012, 9:48:55 PM4/25/12
to django-haystack
Trouble getting solr and Haystack working together. I have solar
working (can get admin screen and query test data). I then create my
search_indexes.py (per getting started example, I also have run syndb
and added data to the Notes table). I run manage.py
build_solar_schema, it generates XML for the schema.xml file. I
replace the contents of the schema.xml with the new content. I
restart the solr server, then try to start admin but get following
error>

HTTP ERROR 500

Problem accessing /solr/admin/. Reason:

Severe errors in solr configuration.

Check your log files for more detailed information on what may be
wrong.

If you want solr to continue after configuration errors, change:

<abortOnConfigurationError>false</abortOnConfigurationError>

in solr.xml

-------------------------------------------------------------
org.apache.solr.common.SolrException: No cores were created, please
check the logs for errors

what am I doing wrong.

Vignesh Sarma

unread,
Apr 27, 2012, 2:02:47 AM4/27/12
to django-...@googlegroups.com
Hi,

Have you rebuilt the index?
This happened to me too..

just try 
python manage.py rebuild_index

then try again...

It should work.

BillB1951

unread,
May 1, 2012, 11:09:06 AM5/1/12
to django-haystack
I have resolved this issue. Was using haystack 2.0.0 beta, and Solr
3.6.0. Solr 3.6.0 change where it looks for stopwords_en.txt ( now
under /lang subdirectory) I had to edit the haystack generated
schema.xml to get it to work.
Reply all
Reply to author
Forward
0 new messages