pysolr icon indicating copy to clipboard operation
pysolr copied to clipboard

Error when deleting documents

Open iglimanaj opened this issue 2 years ago • 2 comments

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 avatar Aug 07 '21 14:08 iglimanaj

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?

iglimanaj avatar Aug 09 '21 10:08 iglimanaj

I think #358 fixes this.

A workaround until they build the next release:

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

ramayer avatar Oct 16 '21 09:10 ramayer