TaxonomyWriter tw, String content, List<CategoryPath> categories) throws IOException,
CorruptIndexException {
Document d = new Document();
CategoryDocumentBuilder builder = new CategoryDocumentBuilder(tw, iParams);
builder.setCategoryPaths(categories);
builder.build(d);
d.add(new Field("content", content, Store.YES, Index.ANALYZED, TermVector.NO));
iw.addDocument(d);
}
/** Build the "truth" with ALL the facets enumerating indexes content. */