removed clearURLIndex, which is a stub remaining from the old metadata

database and not needed any more
pull/1/head
Michael Peter Christen 11 years ago
parent bc28247089
commit bf97e38b83

@ -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")) {

@ -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) {

@ -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();

Loading…
Cancel
Save