11👍
This error usually happens when your schema.xml file is improperly configured.
You can use python manage.py build_solr_schema > schema.xml
to generate the schema.
In order to actually have solr use it, you typically place it in example/solr/conf/schema.xml
Finally: watch the log output of your Solr server. During development I have it running via java -jar start.jar
and it implicitly prints to my screen. Otherwise, your logs go into the example/logs
directory.
Additionally, double check the HAYSTACK_SOLR_URL
. It should not have a trailing slash.
4👍
I was having this error. The first reason was that I hadn’t rebuilt the schema.xml, but there is something more… After you rebuild the schema.xml you must to restart Solr. Doing this, Solr will recognize the schema changes and will know the new fields.