fix for webgraph delete query

pull/1/head
Michael Peter Christen 12 years ago
parent 56d5946a59
commit c16de49f64

@ -564,7 +564,7 @@ public final class Fulltext {
synchronized (Fulltext.this.solrInstances) {
for (byte[] urlHash: deleteIDs) {
Fulltext.this.getDefaultConnector().delete(ASCII.String(urlHash));
Fulltext.this.getWebgraphConnector().deleteByQuery(WebgraphSchema.source_id_s.getSolrFieldName() + ":" + ASCII.String(urlHash));
Fulltext.this.getWebgraphConnector().deleteByQuery(WebgraphSchema.source_id_s.getSolrFieldName() + ":\"" + ASCII.String(urlHash) + "\"");
}
Fulltext.this.commit(true);
}
@ -586,7 +586,7 @@ public final class Fulltext {
try {
synchronized (this.solrInstances) {
this.getDefaultConnector().delete(ASCII.String(urlHash));
this.getWebgraphConnector().deleteByQuery(WebgraphSchema.source_id_s.getSolrFieldName() + ":" + ASCII.String(urlHash));
this.getWebgraphConnector().deleteByQuery(WebgraphSchema.source_id_s.getSolrFieldName() + ":\"" + ASCII.String(urlHash) + "\"");
}
} catch (final Throwable e) {
Log.logException(e);

Loading…
Cancel
Save