pysolr icon indicating copy to clipboard operation
pysolr copied to clipboard

Trailing slashes in URI/path

Open gena01 opened this issue 5 years ago • 5 comments

I was going through https://lucene.apache.org/solr/guide/8_1/solr-tutorial.html and was trying to get pysolr working on my end.

I noticed that the URI's no longer have trailing slashes and there's no way to turn that off?

https://github.com/django-haystack/pysolr/blob/a2f252603e333d2dadc4e61b8f9bc3cae2b7ddbc/pysolr.py#L475

https://github.com/django-haystack/pysolr/blob/a2f252603e333d2dadc4e61b8f9bc3cae2b7ddbc/pysolr.py#L479

https://github.com/django-haystack/pysolr/blob/a2f252603e333d2dadc4e61b8f9bc3cae2b7ddbc/pysolr.py#L525

gena01 avatar Aug 01 '19 20:08 gena01

Is this causing a problem and if so with what version of Solr - 8.1? I’ve mostly used it with 7 and earlier so we might need to update for this.

acdha avatar Aug 01 '19 23:08 acdha

So I know that it's causing us an issue with our solr 7.5 configuration.

I tried to research this through the solr guides/docs.. went as far back as solr 4.4 guide pdf. The section that looks interesting is the "Client API" that has a Python example that looks something like:

connection = urlopen('http://localhost:8983/solr/select?q=cheese&wt=python')
response = eval(connection.read())

gena01 avatar Aug 08 '19 11:08 gena01

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 06 '19 12:11 stale[bot]

Any update on this? would you consider a PR?

gena01 avatar Nov 07 '19 15:11 gena01

Please send a PR — I have very little time available for open source these days and this isn't something I need for my projects.

acdha avatar Nov 07 '19 16:11 acdha