[ 
https://issues.apache.org/jira/browse/SOLR-2610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13054489#comment-13054489
 ] 

Shawn Heisey commented on SOLR-2610:
------------------------------------

bq. Shawn, that is not a use-case for RELOAD. The idea behind it is to reload 
an existing core's index with updated configuration changes and swap it with 
the existing core without causing downtime. It seems like your use-case is 
handled well with the stock CREATE, SWAP and UNLOAD+deleteIndex?

CREATE requires that the caller be aware of internal server filesystem 
structures.  For the typical use of CREATE, this is not really a problem, but 
if what you're trying to do is unload a core, delete its index, and then 
immediately recreate it with the same config, it would be very nice to not have 
to specify (or even know) the solr.xml configuration bits.

In this particular case, the person who writes the scripts is the same person 
who maintains the Solr infrastructure (me) ... but that might not always be the 
case.  Currently the build scripts don't know anything about the internal 
structure other than core names, and I'd like to keep it that way.

Adding an option like deleteIndex to RELOAD seemed a logical way to handle 
this, since currently (1.4.1) I have to completely restart Solr when I wipe out 
an index directory.  If this is not a logical progression, I would argue that 
CoreAdmin needs an entirely new action.  Either way, if it's deemed desirable, 
it needs its own Jira issue.  I brought it up here because it's at least 
tangentially related.


> Add an option to delete index through CoreAdmin UNLOAD action
> -------------------------------------------------------------
>
>                 Key: SOLR-2610
>                 URL: https://issues.apache.org/jira/browse/SOLR-2610
>             Project: Solr
>          Issue Type: Improvement
>          Components: multicore
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 3.3, 4.0
>
>         Attachments: SOLR-2610-branch3x.patch, SOLR-2610.patch
>
>
> Right now, one can unload a Solr Core but the index files are left behind and 
> consume disk space. We should have an option to delete the index when 
> unloading a core.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to