// a filter that only allows through the first hit
Filter filt = new Filter() {
public DocIdSet getDocIdSet(IndexReader reader) throws IOException {
BitSet bs = new BitSet(reader.maxDoc());
bs.set(docs1.scoreDocs[0].doc);
return new DocIdBitSet(bs);
}
};
TopDocs docs2 = full.search(queryE, filt, nDocs, sort);