I have similar needs but for a slightly different use-case.
In my case, I am breaking up cores / indexes based on the month and year
so that I can add an alias that always points to the last few months,
but beyond that I want to simply unload the other indexes once they get
past a few months o
Thank you Simon, Erick and Shawn for your replies. Unfortunately, restarting
Solr is not a option for me. So, I’ll try to follow the steps given by Shawn to
see where I’m standing. Btw, I’m using Solr 6.4.2.
Shawn, once again thank you very much for the detailed reply.
Thanks,
Shashank Pedamall
On 5/2/2017 10:53 AM, Shashank Pedamallu wrote:
> I want to unload a core from Solr without deleting data-dir or instance-dir.
> I’m performing some operations on the data-dir after this and then I would
> like to reload the core from the same data-dir. These are the things I tried:
>
> 1. Rel
the core properties definitely disappears if you use a configset, as in
#
#Written by CorePropertiesLocator
#Tue May 02 20:19:40 UTC 2017
name=testcore
dataDir=/indexes/solrindexes/testcore
configSet=myconf
Using a conf directory, as in
#Written by CorePropertiesLocator
#Tue May 02 20:30:44
IIRC, the core.properties file _is_ renamed to
core.properties.unloaded or something like that.
Yeah, this is something of a pain. The inverse of "unload" is "create"
but you have to know exactly how to create a core, and in SolrCloud
mode that's...interesting. It's much safer to bring the Solr no
I ran into the exact same situation recently. I unloaded from the browser
GUI which does not delete the data or instance dirs, but does delete
core.properties. I couldn't find any API either so I eventually manually
recreated core.properties and restarted Solr.
Would be nice if the core.propert