if(luceneBill == null) {
//TODO we don't have it
continue;
}
else {
ProblemBill problemBill = new ProblemBill(luceneBill.getSenateBillNo(), luceneBill.getModified());
problemBill.setLastReported(time);
if(valid(lbdcBill.getSponsor(), luceneBill.getSponsor())) {
if(!cln(lbdcBill.getSponsor().getFullname()).equalsIgnoreCase(
cln(luceneBill.getSponsor().getFullname().replaceAll("\\s*\\(MS\\)", "")))) {
problemBill.addNonMatchingField(
new NonMatchingField(
FieldName.SPONSOR,
luceneBill.getSponsor().getFullname(),
lbdcBill.getSponsor().getFullname()));
}
}
doCollectionField(problemBill, FieldName.ACTIONS, luceneBill.getActions(), lbdcBill.getActions());
doCollectionField(problemBill, FieldName.COSPONSORS, luceneBill.getCoSponsors(), lbdcBill.getCoSponsors());
doStringField(problemBill, FieldName.SUMMARY, luceneBill.getSummary(), lbdcBill.getSummary(), ".*?");
doStringField(problemBill, FieldName.TITLE, luceneBill.getTitle(), lbdcBill.getTitle(), null);
doStringField(problemBill, FieldName.LAW_SECTION, luceneBill.getLawSection(), lbdcBill.getLawSection(), null);
if(problemBill.getNonMatchingFields() != null && problemBill.getNonMatchingFields().size() != 0)
ret.add(problemBill);
}
}
close();