longcount=segment.fulltext().getDefaultConnector().getCountByQuery(CollectionSchema.url_protocol_s.getSolrFieldName()+":\""+protocol+"\" AND "+CollectionSchema.host_id_s.getSolrFieldName()+":\""+hostid+"\" AND "+checkfield.getSolrFieldName()+":\""+Long.toString(signature)+"\"");
longcount=segment.fulltext().getDefaultConnector().getCountByQuery(CollectionSchema.host_id_s.getSolrFieldName()+":\""+hostid+"\" AND "+checkfield.getSolrFieldName()+":\""+Long.toString(signature)+"\"");
if(count>1){
Stringurlhash=ASCII.String(url.hash());
if(uniqueURLs.contains(urlhash)){
@ -191,7 +191,7 @@ public class SchemaConfiguration extends Configuration implements Serializable {
continueuniquecheck;
}
try{
finalSolrDocumentListdocs=segment.fulltext().getDefaultConnector().getDocumentListByQuery(CollectionSchema.url_protocol_s.getSolrFieldName()+":\""+protocol+"\" AND "+CollectionSchema.host_id_s.getSolrFieldName()+":\""+hostid+"\" AND "+signaturefield.getSolrFieldName()+":\""+checkhash.toString()+"\"",null,0,1);
finalSolrDocumentListdocs=segment.fulltext().getDefaultConnector().getDocumentListByQuery(CollectionSchema.host_id_s.getSolrFieldName()+":\""+hostid+"\" AND "+signaturefield.getSolrFieldName()+":\""+checkhash.toString()+"\"",null,0,1);