small bugfixes

pull/1/head
Michael Peter Christen 10 years ago
parent 87f8118108
commit e039e78210

@ -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;

@ -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;

Loading…
Cancel
Save