return new SenseiFilter() {
volatile boolean called = false;
@Override
public SenseiDocIdSet getSenseiDocIdSet(IndexReader reader) throws IOException {
SenseiDocIdSet docIdSet = senseiFilter.getSenseiDocIdSet(reader);
if(logger.isDebugEnabled() && !called) {
logger.debug("Running the query: " + (query == null ? "NULL" : query.toString()));
logger.debug("Plan(" + (reader.maxDoc() + 1) + "): " + docIdSet.getQueryPlan());
}
return docIdSet;
}
};
} else {