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?
Best, Erick > On Nov 4, 2019, at 12:34 PM, rhys J <rhyssha...@gmail.com> wrote: > > I have created a tmp directory where I want to have reside custom > managed-schemas to use when creating cores. > > /tmp/solr_schema/CORENAME/managed-schema > > Based on this page: > https://lucene.apache.org/solr/guide/7_0/coreadmin-api.html#coreadmin-create > , I am running the following command: > > sudo -u solr /opt/solr/bin/solr create -c dbtrphon -schema > /tmp/solr_schemas/dbtrphon/managed-schema > > I get this error: > > ERROR: Unrecognized or misplaced argument: -schema! > > How can I create a core with a custom managed-schema? > > I'm trying to implement solr in a development environment, but I would like > to have custom schemas, so that when we move it to live, we don't have to > recreate the schemas by hand again. > > Thanks, > > Rhys > > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon> > Virus-free. > www.avast.com > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link> > <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>