query.add(new TermQuery(new Term(ROW_ID, rowId)), Occur.MUST);
} else {
query.add(new TermQuery(new Term(ROW_ID, rowId)), Occur.MUST);
query.add(new TermQuery(BlurUtil.PRIME_DOC_TERM), Occur.MUST);
}
TopDocs topDocs = searcher.search(query, 1);
if (topDocs.totalHits > 1) {
if (selector.recordOnly) {
LOG.warn("Rowid [" + rowId + "], recordId [" + recordId
+ "] has more than one prime doc that is not deleted.");
} else {