@ -158,17 +157,15 @@ public class SchemaConfiguration extends Configuration implements Serializable {
continueuniquecheck;
}
try{
if(segment.fulltext().getDefaultConnector().existsByQuery(CollectionSchema.host_id_s+":\""+hostid+"\" AND "+signaturefield.getSolrFieldName()+":\""+checkhash.toString()+"\"")){
finalSolrDocumentdoc=segment.fulltext().getDefaultConnector().getDocumentById(CollectionSchema.host_id_s+":\""+hostid+"\" AND "+signaturefield.getSolrFieldName()+":\""+checkhash.toString()+"\"");
// switch attribute also in all existing documents (which should be exactly only one!)
SolrDocumentListdocs=segment.fulltext().getDefaultConnector().getDocumentListByQuery(CollectionSchema.host_id_s+":\""+hostid+"\" AND "+signaturefield.getSolrFieldName()+":\""+checkhash.toString()+"\" AND "+uniquefield.getSolrFieldName()+":true",0,1000);
// this is actually wrong but to make it right we need to wait until all queues are flushed. But that may take very long when the queues are filled again all the time.
returnthis.fulltext.getDefaultConnector().existsByQuery(CollectionSchema.id.getSolrFieldName()+":\""+ASCII.String(urlHash)+"\" AND "+CollectionSchema.failreason_s.getSolrFieldName()+":[* TO *]");