django-haystack / pysolr

Pysolr — Python Solr client
BSD 3-Clause "New" or "Revised" License
666 stars 340 forks source link

Error when deleting documents #368

Open iglimanaj opened 3 years ago

iglimanaj commented 3 years ago

The delete function throws the following error when the id contains at least one & symbol:

SolrError: Solr responded with an error (HTTP 500): [Reason: [com.ctc.wstx.exc.WstxLazyException] Unexpected character ' ' (code 32) (missing name?)
 at [row,col {unknown-source}]: [1,19]]
iglimanaj commented 3 years ago

When using the current state of the pysolr.py module the error seems due to the latest commit https://github.com/django-haystack/pysolr/commit/b48eabda2ac592836aa576c7ad3181963f9784d9 to not occur. However after installing pysolr with pip these changes are not present, even though the latest release 3.9.0 was published after the mentioned commit.

When is the new release coming?

ramayer commented 3 years ago

I think #358 fixes this.

A workaround until they build the next release:

pip install git+https://github.com/django-haystack/pysolr/