From e879b97b0ad774955d66218e065f8fe89940fb1c Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Wed, 31 Jul 2013 13:33:05 +0200 Subject: [PATCH] added line to enhance debugging --- htroot/Crawler_p.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htroot/Crawler_p.java b/htroot/Crawler_p.java index 1cd75ef15..ee4dc9cbf 100644 --- a/htroot/Crawler_p.java +++ b/htroot/Crawler_p.java @@ -391,7 +391,8 @@ public class Crawler_p { sb.crawlQueues.errorURL.removeHost(hosthashes, true); for (byte[] hosthash: hosthashes) { try { - sb.index.fulltext().getDefaultConnector().deleteByQuery(CollectionSchema.host_id_s.getSolrFieldName() + ":\"" + ASCII.String(hosthash) + "\" AND " + CollectionSchema.failreason_s.getSolrFieldName() + ":[* TO *]"); + String deletequery = CollectionSchema.host_id_s.getSolrFieldName() + ":\"" + ASCII.String(hosthash) + "\" AND " + CollectionSchema.failreason_s.getSolrFieldName() + ":[* TO *]"; + sb.index.fulltext().getDefaultConnector().deleteByQuery(deletequery); } catch (final IOException e) {ConcurrentLog.logException(e);} } sb.index.fulltext().commit(true);