From c16de49f6429cc307b7ee0a1df721dac509b68c9 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Sun, 24 Feb 2013 18:17:58 +0100 Subject: [PATCH] fix for webgraph delete query --- source/net/yacy/search/index/Fulltext.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/yacy/search/index/Fulltext.java b/source/net/yacy/search/index/Fulltext.java index ebcd82526..27b8ad5d9 100644 --- a/source/net/yacy/search/index/Fulltext.java +++ b/source/net/yacy/search/index/Fulltext.java @@ -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);