int numBrowseHits = 0;
int numFilterHits = 0;
int numResultHits = 0;
Weight w = new Weight(0, 0);
SelectorContext ctx = new SelectorContext();
while(connStrengthIter.hasNext()) {
numBrowseHits++;
connStrengthIter.next(w);
int elemId = w.elementId;
if(elementStore.hasIndex(elemId) && (filterStore.get(elemId) & filter) == filter) {
numFilterHits++;
E elem = elementStore.getElement(elemId);
if(elem != null) {
if(selector.select(elem, ctx)) {
numResultHits++;
double hitScore = ctx.getScore() * (w.elementWeight + 1);
collector.add(elem, hitScore, getName(), Proximity.DEGREE_1);
if(collector.canStop()) {
break;
}
}
ctx.clear();
}
}
if(numBrowseHits % 100 == 0) {
totalTime = System.currentTimeMillis() - startTime;