BooleanQuery f1 = new BooleanQuery();
f1.add(new TermQuery(new Term(PERSON_NAME, NAME1)), Occur.MUST);
f1.add(new TermQuery(new Term(PERSON_NAME, NAME2)), Occur.MUST);
Query[] facets = new Query[] { new SuperQuery(f1, ScoreType.CONSTANT, new Term(PRIME_DOC, PRIME_DOC_VALUE)) };
AtomicLongArray counts = new AtomicLongArray(facets.length);
FacetQuery query = new FacetQuery(booleanQuery, facets, counts);
TopDocs topDocs = searcher.search(query, 10);
assertEquals(3, topDocs.totalHits);
printTopDocs(topDocs);