Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
5.0
-
None
-
None
Description
Steps To Reproduce
curl 'http://localhost:8983/solr/admin/cores?action=CREATE&name=new_core&instanceDir=new_core'
Expected Result
Create a core called "new_core".
Actual Result
Error CREATEing SolrCore 'new_core': Unable to create core [new_core] Caused by: Can't find resource 'solrconfig.xml' in classpath or '/var/solr/data/new_core/conf'
Somebody on solr-users tells me:
The CoreAdmin API requires that the instanceDir already exist, with a
conf directory inside it that contains solrconfig.xml, schema.xml, and
any other necessary config files.
Huh? Where is this magical knowledge mentioned in the API documentation?
Another user on the list serve says:
In fact, yes. The thing to remember here is that you're using a much
older approach that had its roots in the pre-cloud days.
The whole point of creating APIs is to abstract out details that the caller doesn't need to know, and yet this API requires an understanding of Solr's internal file structure and history of the project? I'm speechless.
Attachments
Issue Links
- is cloned by
-
SOLR-11663 CLONE - API to create a core is broken
- Closed
- is duplicated by
-
SOLR-11663 CLONE - API to create a core is broken
- Closed