Skip to content

Unable to create a core #318

Open
Open
@Dimfred

Description

@Dimfred

I have

  • Tested with the latest release
  • Tested with the current master branch
  • Searched for similar existing issues

Expected behaviour

pysolr creates a new core

Actual behaviour

pysolr does not create a core

Steps to reproduce the behaviour

  1. admin = pysolr.SolrCoreAdmin("http://localhost:8983/solr/admin/cores"
  2. admin.create("corename", "<SOLR_ROOT>/server/solr/configsets/_default/conf")

Configuration

  • Operating system version: Ubuntu 20.04
  • Search engine version: 8.5.1
  • Python version: 3.7.3
  • pysolr version: 3.9.0

Could fix it with

replaced: https://github.com/django-haystack/pysolr/blob/master/pysolr.py#L1307

resp = requests.get(url, data=safe_url_encode(params), headers=headers)
with
resp = requests.get(url, data=params, headers=headers)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions