I understand that this has to be done on the command line, but I don't know where to put this structure or what it should look like. Can you please be more specific in this answer? I have only been working with Solr for about six months.
~~~~~~~~~~~~~~~~~~~~~~~ William Kevin Miller ECS Federal, Inc. USPS/MTSC (405) 573-2158 -----Original Message----- From: Erick Erickson [mailto:erickerick...@gmail.com] Sent: Wednesday, September 27, 2017 3:57 PM To: solr-user Subject: Re: Modifing create_core's instanceDir attribute Standard command-line. You're doing this on the box itself, not through a REST API..... Erick On Wed, Sep 27, 2017 at 10:26 AM, Miller, William K - Norman, OK - Contractor <william.k.mil...@usps.gov.invalid> wrote: > This is my first time to try using the core admin API. How do I go about > creating the directory structure? > > > > > ~~~~~~~~~~~~~~~~~~~~~~~ > William Kevin Miller > > ECS Federal, Inc. > USPS/MTSC > (405) 573-2158 > > > -----Original Message----- > From: Erick Erickson [mailto:erickerick...@gmail.com] > Sent: Wednesday, September 27, 2017 11:45 AM > To: solr-user > Subject: Re: Modifing create_core's instanceDir attribute > > Right, the core admin API is pretty low-level, it expects the base directory > exists, you have to create the directory structure by hand. > > Best, > Erick > > On Wed, Sep 27, 2017 at 9:24 AM, Miller, William K - Norman, OK - Contractor > <william.k.mil...@usps.gov.invalid> wrote: >> Thanks Erick for pointing me in this direction. Unfortunately when I try to >> us this I get an error. Here is the command that I am using and the >> response I get: >> >> https://solrserver:8983/solr/admin/cores?action=CREATE&name=mycore&in >> s >> tanceDir=/var/solr/data/mycore&dataDir=data&configSet=custom_configs >> >> >> [1] 32023 >> [2] 32024 >> [3] 32025 >> -bash: https://solrserver:8983/solr/admin/cores?action=CREATE: No >> such file or directory [4] 32026 >> [1] Exit 127 >> https://solrserver:8983/solr/adkmin/cores?action=CREATE >> [2] Done name=mycore >> [3]- Done instanceDir=/var/solr/data/mycore >> [4]+ Done dataDir=data >> >> >> I even tried to use the UNLOAD action to remove a core and got the same type >> of error as the -bash line above. >> >> I have tried searching online for an answer and have found nothing so far. >> Any ideas why this error is occuring. >> >> >> >> ~~~~~~~~~~~~~~~~~~~~~~~ >> William Kevin Miller >> >> ECS Federal, Inc. >> USPS/MTSC >> (405) 573-2158 >> >> -----Original Message----- >> From: Erick Erickson [mailto:erickerick...@gmail.com] >> Sent: Tuesday, September 26, 2017 3:33 PM >> To: solr-user >> Subject: Re: Modifing create_core's instanceDir attribute >> >> I don't think you can. You can, however, use the core admin API to do >> that, >> see: >> https://lucene.apache.org/solr/guide/6_6/coreadmin-api.html#coreadmin >> - >> api >> >> Best, >> Erick >> >> On Tue, Sep 26, 2017 at 1:14 PM, Miller, William K - Norman, OK - Contractor >> <william.k.mil...@usps.gov.invalid> wrote: >> >>> I know that when the create_core command is used that it sets the >>> core to the name of the parameter supplied with the ā-cā option and >>> the instanceDir attribute in the http is also set to the name of the core. >>> What I want is to tell the create_core to use a different >>> instanceDir parameter. How can I go about doing this? >>> >>> >>> >>> >>> >>> I am using Solr 6.5.1 and it is running on a linux server using the >>> apache tomcat webserver. >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> ~~~~~~~~~~~~~~~~~~~~~~~ >>> >>> William Kevin Miller >>> >>> [image: ecsLogo] >>> >>> ECS Federal, Inc. >>> >>> USPS/MTSC >>> >>> (405) 573-2158 >>> >>> >>>