lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amanda Shuman <>
Subject Re: How to get a solr core to persist
Date Mon, 20 Nov 2017 13:26:33 GMT
Hi Shawn,

I did as you suggested and created the core by hand - I copied the files
from the existing core, including the index files (data directory) and
changed the file to the new core name (core_new) and
restarted. Now I'm having a different issue - it says it is Optimized but
that Current is not (the console shows the red prohibited sign, which I
guess means false or something?). So basically there's no content at all in
there. Re-reading your instructions here: " If you want to relocate the
data, you can add a dataDir property to  If it has a
relative path, it is relative to the location." - Did I
miss a step to get the existing index to load?


Dr. Amanda Shuman
Post-doc researcher, University of Freiburg, The Maoist Legacy Project
PhD, University of California, Santa Cruz
Office: +49 (0) 761 203 4925

On Wed, Nov 15, 2017 at 1:32 PM, Shawn Heisey <> wrote:

> On 11/15/2017 2:28 AM, Amanda Shuman wrote:
>> 1) so does this mean that on the back-end I should first create my new
>> core, e.g., core1 and then within that place a conf folder with all the
>> files? Same for the data folder? If so, is it fine to just use the
>> existing
>> config files that I've previously worked on (i.e. the config for search
>> that I already modified)? I presume this won't be an issue.
>> 2) does it matter if I create this core through the admin console or at
>> command line?
> You can create your cores however you like.  I actually create all my
> cores completely by hand, including the file, and let Solr
> discover them on startup.  Mostly I just copy an existing core, change
> to correct values, make any config changes I need, and
> restart Solr.
> If you want to use the admin UI (or the CoreAdmin API directly, which is
> what the admin UI calls), then the instanceDir must have a conf directory
> with all the config files you require for the core, and NOT have a
> file.  If you're adding a core that already has a an index,
> then you would also include the data directory in the core's instanceDir.
> If you want to relocate the data, you can add a dataDir property to
>  If it has a relative path, it is relative to the
> location.
> The commandline creation works pretty well.  The way it works is by
> copying a configset (which may be in server/solr/configsets or in a custom
> location) to the "conf" directory in the core, then calling the CoreAdmin
> API to actually add the core to Solr (and create so it'll
> get picked up on restart).
> Thanks,
> Shawn

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message