From 2645dc816a0df18d7f4912ef5ecffc11eab184de Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Thu, 18 Sep 2014 14:36:57 +0200 Subject: [PATCH] added warning for not well-formed postprocessing queries --- source/net/yacy/search/schema/CollectionConfiguration.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/net/yacy/search/schema/CollectionConfiguration.java b/source/net/yacy/search/schema/CollectionConfiguration.java index ee2a3225a..657b419ee 100644 --- a/source/net/yacy/search/schema/CollectionConfiguration.java +++ b/source/net/yacy/search/schema/CollectionConfiguration.java @@ -1278,6 +1278,11 @@ public class CollectionConfiguration extends SchemaConfiguration implements Seri Collection proctags = doc.getFieldValues(CollectionSchema.process_sxt.getSolrFieldName()); final String u = (String) doc.getFieldValue(CollectionSchema.sku.getSolrFieldName()); final String i = (String) doc.getFieldValue(CollectionSchema.id.getSolrFieldName()); + if (proctags == null) { + // this should not happen since we collected the documents using a process_sxt:[* TO *] term + ConcurrentLog.warn("CollectionConfiguration", "no process_sxt entry for url " + u); + continue; + } try { DigestURL url = new DigestURL(u, ASCII.getBytes(i)); byte[] id = url.hash();