[
https://issues.apache.org/jira/browse/SOLR-7895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14661332#comment-14661332
]
Shawn Heisey commented on SOLR-7895:
------------------------------------
The deleteByQuery action will mark all the documents deleted, but when it is
done, the disk still has all the index files, and for many features, those
documents are still utilized, although they will be pruned from results. For
some config/schema changes, deleting all the docs in the index isn't enough to
prevent errors.
I would like to have a button that actually deletes the data directory, after
appropriate confirmation. In order to allow it to work on Windows, it would
probably need to unload the core, delete the directory and all its contents,
and then re-create the core. When the core is created, the dataDir and its
index directory will be rebuilt. Appropriate permissions on the filesystem are
required, but usually if you can delete the directory, you can create it again.
> Administrative UI Lacks Obvious "Delete Core Contents" Button
> -------------------------------------------------------------
>
> Key: SOLR-7895
> URL: https://issues.apache.org/jira/browse/SOLR-7895
> Project: Solr
> Issue Type: Improvement
> Affects Versions: 5.2.1
> Reporter: Aaron Greenspan
>
> When Solr screws up, which is practically on a daily basis, I often want to
> delete the contents of a core without deleting its structure. Instead of
> clicking on a button and perhaps an "Are you sure?" prompt, I have to
> remember this incredibly unwieldy and dangerous-to-bookmark URL:
> http://[server]:8983/solr/[core
> name]/update?stream.body=%3Cdelete%3E%3Cquery%3Eid:*%3C/query%3E%3C/delete%3E&commit=true
> To say that this is not user-friendly is a gross understatement. If there is
> a better way or an obvious easy way, I have not found it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]