/** utility Create a dummy document with specified categories and content */
protected final void indexDoc(FacetIndexingParams iParams, RandomIndexWriter iw,
TaxonomyWriter tw, String content, List<CategoryPath> categories) throws IOException {
Document d = new Document();
FacetFields facetFields = new FacetFields(tw, iParams);
facetFields.addFields(d, categories);
d.add(new TextField("content", content, Field.Store.YES));
iw.addDocument(d);
}
/** Build the "truth" with ALL the facets enumerating indexes content. */