You’re confusing the admin API with the bin/solr script. If you look at
the examples on that page, the form is:

admin/cores?action=CREATE&name=core-name&instanceDir=path/to/dir&config=solrconfig.xml&dataDir=data

what you used was:
/opt/solr/bin/solr create….

Totally different beasts.


> On Nov 4, 2019, at 1:43 PM, rhys J <rhyssha...@gmail.com> wrote:
> 
> On Mon, Nov 4, 2019 at 1:36 PM Erick Erickson <erickerick...@gmail.com>
> wrote:
> 
>> Well, just what it says. -schema isn’t a recognized parameter, where did
>> you get it? Did you try bin/solr create -help and follow the instructions
>> there?
>> 
>> I am confused.
> 
> This page:
> https://lucene.apache.org/solr/guide/7_0/coreadmin-api.html#coreadmin-create
> 
> says that schema is a valid parameter, and it explains how to use it.
> 
> But when I use the command create, I get an error.
> 
> Is there no way to use a custom schema to create a core from the command
> line? Will I always have to either hand edit the managed-schema, or use the
> API?
> 
> Thanks,
> 
> Rhys

Reply via email to