rebuild_index: Failed to add documents to Solr: Reason: ERROR:unknown field

953 views
Skip to first unread message

hellboy

unread,
Sep 14, 2010, 4:11:25 AM9/14/10
to django-haystack
bin/django rebuild_index:

Are you sure you wish to continue? [y/N] y

Removing all documents from your index because you said so.
All documents removed.
Indexing 31531 documents.

Failed to add documents to Solr: [Reason: ERROR:unknown field
'field1'] - 1 time
Failed to add documents to Solr: [Reason: ERROR:unknown field
'field2'] - 26 times

Patrick Bregman

unread,
Sep 14, 2010, 4:09:37 PM9/14/10
to django-...@googlegroups.com

> --
> You received this message because you are subscribed to the Google Groups "django-haystack" group.
> To post to this group, send email to django-...@googlegroups.com.
> To unsubscribe from this group, send email to django-haysta...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-haystack?hl=en.
>

Did you make the Solr schema using
./manage.py build_solr_schema > schema.xml
and then copied the schema.xml file to your Solr configuration folder?
If so, did you also restart Solr/Tomcat/whatever-application-server-you-are-using?

If you did all this and didn't change the searchindex specification (the searchindexes.py files if I'm not mistaken) it is a strange error and I'd try and see if the fields are actually defined in the schema.xml which you are currently using.

Reply all
Reply to author
Forward
0 new messages