diff --git a/htroot/IndexControlURLs_p.java b/htroot/IndexControlURLs_p.java index 732fe6376..fcff71102 100644 --- a/htroot/IndexControlURLs_p.java +++ b/htroot/IndexControlURLs_p.java @@ -148,7 +148,6 @@ public class IndexControlURLs_p { // delete everything if ( post.containsKey("deletecomplete") ) { if ( post.get("deleteIndex", "").equals("on") ) { - segment.fulltext().clearURLIndex(); try {segment.fulltext().clearLocalSolr();} catch (final IOException e) {} } if ( post.get("deleteRemoteSolr", "").equals("on")) { diff --git a/source/net/yacy/search/index/Fulltext.java b/source/net/yacy/search/index/Fulltext.java index 748f26864..ce97cda68 100644 --- a/source/net/yacy/search/index/Fulltext.java +++ b/source/net/yacy/search/index/Fulltext.java @@ -213,13 +213,8 @@ public final class Fulltext { this.statsDump = null; } - public void clearURLIndex() { - if (this.exportthread != null) this.exportthread.interrupt(); - this.statsDump = null; - this.commit(true); - } - public void clearLocalSolr() throws IOException { + if (this.exportthread != null) this.exportthread.interrupt(); synchronized (this.solrInstances) { EmbeddedInstance instance = this.solrInstances.getEmbedded(); if (instance != null) { diff --git a/source/net/yacy/search/index/Segment.java b/source/net/yacy/search/index/Segment.java index b2d2ba535..45d4e990d 100644 --- a/source/net/yacy/search/index/Segment.java +++ b/source/net/yacy/search/index/Segment.java @@ -530,7 +530,6 @@ public class Segment { public void clear() { try { if (this.termIndex != null) this.termIndex.clear(); - if (this.fulltext != null) this.fulltext.clearURLIndex(); if (this.fulltext != null) this.fulltext.clearLocalSolr(); if (this.fulltext != null) this.fulltext.clearRemoteSolr(); if (this.urlCitationIndex != null) this.urlCitationIndex.clear();