different from normal requests. This happens if the remote solr is
actually a solrCloud; in such cases the luke request returns only the
result of the single solr peer, not the whole cloud.
also done: some refactoring.
Stringquery=collectiondelete_mode_unassigned_checked?"-"+CollectionSchema.collection_sxt+":[* TO *]":collectiondelete.length()==0?CollectionSchema.collection_sxt+":\"\"":QueryModifier.parseCollectionExpression(collectiondelete);
if(processCollection)try{collectionRemainingCount=sb.index.fulltext().getDefaultConnector().getCountByQuery(CollectionSchema.process_sxt.getSolrFieldName()+":[* TO *]");}catch(IOExceptione){}
if(processWebgraph)try{webgraphRemainingCount=sb.index.fulltext().getWebgraphConnector().getCountByQuery(WebgraphSchema.process_sxt.getSolrFieldName()+":[* TO *]");}catch(IOExceptione){}
try{postprocessingCount[0]=(int)fulltext.getDefaultConnector().getCountByQuery(CollectionSchema.process_sxt.getSolrFieldName()+":[* TO *]");}catch(IOExceptione){}
try{postprocessingCount[0]=(int)fulltext.getDefaultConnector().getCountByQuery(CollectionSchema.process_sxt.getSolrFieldName()+":[* TO *]");}catch(IOExceptione){}// should be zero but you never know
try{postprocessingCount[0]=(int)fulltext.getDefaultConnector().getCountByQuery(CollectionSchema.process_sxt.getSolrFieldName()+AbstractSolrConnector.CATCHALL_DTERM);}catch(IOExceptione){}// should be zero but you never know
try{postprocessingCount[1]=(int)fulltext.getWebgraphConnector().getCountByQuery(WebgraphSchema.process_sxt.getSolrFieldName()+":[* TO *]");}catch(IOExceptione){}
try{postprocessingCount[1]=(int)fulltext.getWebgraphConnector().getCountByQuery(WebgraphSchema.process_sxt.getSolrFieldName()+":[* TO *]");}catch(IOExceptione){}
try{postprocessingCount[0]=(int)fulltext.getDefaultConnector().getCountByQuery(CollectionSchema.process_sxt.getSolrFieldName()+":[* TO *]");}catch(IOExceptione){}
try{postprocessingCount[0]=(int)fulltext.getDefaultConnector().getCountByQuery(CollectionSchema.process_sxt.getSolrFieldName()+":[* TO *]");}catch(IOExceptione){}// should be zero but you never know
try{postprocessingCount[0]=(int)fulltext.getDefaultConnector().getCountByQuery(CollectionSchema.process_sxt.getSolrFieldName()+AbstractSolrConnector.CATCHALL_DTERM);}catch(IOExceptione){}// should be zero but you never know
try{postprocessingCount[1]=(int)fulltext.getWebgraphConnector().getCountByQuery(WebgraphSchema.process_sxt.getSolrFieldName()+":[* TO *]");}catch(IOExceptione){}
try{postprocessingCount[1]=(int)fulltext.getWebgraphConnector().getCountByQuery(WebgraphSchema.process_sxt.getSolrFieldName()+":[* TO *]");}catch(IOExceptione){}
finalSolrDocumentListdocs=this.fulltext.getDefaultConnector().getDocumentListByQuery(CollectionSchema.id+":\""+urlhash+"\" AND "+CollectionSchema.failtype_s.getSolrFieldName()+":[* TO *]",0,1);
finalSolrDocumentListdocs=this.fulltext.getDefaultConnector().getDocumentListByQuery(CollectionSchema.id+":\""+urlhash+"\" AND "+CollectionSchema.failtype_s.getSolrFieldName()+AbstractSolrConnector.CATCHALL_DTERM,0,1);
deleteDomainWithConstraint(this.getDefaultConnector(),CollectionSchema.host_id_s.getSolrFieldName(),hosthashes,CollectionSchema.failreason_s.getSolrFieldName()+":[* TO *]");
@ -924,7 +924,7 @@ public class CollectionConfiguration extends SchemaConfiguration implements Seri
// collect hosts from index which shall take part in citation computation
Stringquery=(harvestkey==null||!segment.fulltext().getDefaultConfiguration().contains(CollectionSchema.harvestkey_s)?"":CollectionSchema.harvestkey_s.getSolrFieldName()+":\""+harvestkey+"\" AND ")+
CollectionSchema.process_sxt.getSolrFieldName()+":[* TO *]";
@ -950,7 +950,7 @@ public class CollectionConfiguration extends SchemaConfiguration implements Seri
// This shall fulfill the following requirement:
// If a document A links to B and B contains a 'canonical C', then the citation rank computation shall consider that A links to C and B does not link to C.
// To do so, we first must collect all canonical links, find all references to them, get the anchor list of the documents and patch the citation reference of these links
Stringpatchquery=CollectionSchema.host_s.getSolrFieldName()+":"+host+" AND "+CollectionSchema.canonical_s.getSolrFieldName()+":[* TO *]";
Stringpatchquery=CollectionSchema.host_s.getSolrFieldName()+":"+host+" AND "+CollectionSchema.canonical_s.getSolrFieldName()+AbstractSolrConnector.CATCHALL_DTERM;
@ -1065,7 +1065,7 @@ public class CollectionConfiguration extends SchemaConfiguration implements Seri
// process all documents in collection
query=(harvestkey==null||!segment.fulltext().getDefaultConfiguration().contains(CollectionSchema.harvestkey_s)?"":CollectionSchema.harvestkey_s.getSolrFieldName()+":\""+harvestkey+"\" AND ")+
CollectionSchema.process_sxt.getSolrFieldName()+":[* TO *]";
Stringquery=(harvestkey==null||!this.contains(WebgraphSchema.harvestkey_s)?"":WebgraphSchema.harvestkey_s.getSolrFieldName()+":\""+harvestkey+"\" AND ")+WebgraphSchema.process_sxt.getSolrFieldName()+":[* TO *]";
Stringquery=(harvestkey==null||!this.contains(WebgraphSchema.harvestkey_s)?"":WebgraphSchema.harvestkey_s.getSolrFieldName()+":\""+harvestkey+"\" AND ")+WebgraphSchema.process_sxt.getSolrFieldName()+AbstractSolrConnector.CATCHALL_DTERM;