public class BestDriversFilter extends Filter {
@Override
public DocIdSet getDocIdSet(AtomicReaderContext context, Bits acceptDocs) throws IOException {
AtomicReader reader = context.reader();
OpenBitSet bitSet = new OpenBitSet( reader.maxDoc() );
DocsEnum termDocsEnum = reader.termDocsEnum( new Term( "score", "5" ) );
if ( termDocsEnum == null ) {
return bitSet;//All bits already correctly set
}
while ( termDocsEnum.nextDoc() != DocsEnum.NO_MORE_DOCS ) {