mirror of
https://github.com/apache/lucene.git
synced 2025-03-03 23:09:36 +00:00
SOLR-4417: Reopen the IndexWriter on SolrCore reload.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1447084 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
608998e97c
commit
d51e6f2c29
@ -79,6 +79,8 @@ New Features
|
||||
|
||||
* SOLR-3855: Doc values support. (Adrien Grand)
|
||||
|
||||
* SOLR-4417: Reopen the IndexWriter on SolrCore reload. (Mark Miller)
|
||||
|
||||
Bug Fixes
|
||||
----------------------
|
||||
|
||||
|
@ -386,7 +386,6 @@ public final class SolrCore implements SolrInfoMBean {
|
||||
|
||||
public SolrCore reload(SolrResourceLoader resourceLoader, SolrCore prev) throws IOException,
|
||||
ParserConfigurationException, SAXException {
|
||||
// TODO - what if indexwriter settings have changed
|
||||
|
||||
SolrConfig config = new SolrConfig(resourceLoader,
|
||||
getSolrConfig().getName(), null);
|
||||
@ -399,6 +398,11 @@ public final class SolrCore implements SolrInfoMBean {
|
||||
SolrCore core = new SolrCore(getName(), getDataDir(), config,
|
||||
schema, coreDescriptor, updateHandler, prev);
|
||||
core.solrDelPolicy = this.solrDelPolicy;
|
||||
|
||||
core.getUpdateHandler().getSolrCoreState().newIndexWriter(core, false, false);
|
||||
|
||||
core.getSearcher(true, false, null, true);
|
||||
|
||||
return core;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user