diff --git a/source/net/yacy/cora/federate/solr/connector/SolrServerConnector.java b/source/net/yacy/cora/federate/solr/connector/SolrServerConnector.java index 736cf942e..1610c8e3c 100644 --- a/source/net/yacy/cora/federate/solr/connector/SolrServerConnector.java +++ b/source/net/yacy/cora/federate/solr/connector/SolrServerConnector.java @@ -351,6 +351,10 @@ public abstract class SolrServerConnector extends AbstractSolrConnector implemen if (useluke == -1) return getSizeQueryRequest(); long ls = getSizeLukeRequest(); long qs = getSizeQueryRequest(); + if (ls == 0 && qs == 0) { + // we don't know if this is caused by an error or not; don't change the useluke value + return 0; + } if (ls == qs) { useluke = 1; return ls; diff --git a/source/net/yacy/document/parser/apkParser.java b/source/net/yacy/document/parser/apkParser.java index b436554fd..c1a2969d9 100644 --- a/source/net/yacy/document/parser/apkParser.java +++ b/source/net/yacy/document/parser/apkParser.java @@ -35,7 +35,6 @@ import javax.xml.transform.TransformerFactory; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; -import org.w3c.dom.Attr; import org.w3c.dom.Element; import net.yacy.cora.document.id.AnchorURL;