}
/** Build the example index. */
private void index() throws IOException {
IndexWriter indexWriter = new IndexWriter(indexDir, new IndexWriterConfig(FacetExamples.EXAMPLES_VER,
new WhitespaceAnalyzer(FacetExamples.EXAMPLES_VER)));
// Reused across documents, to add the necessary facet fields
SortedSetDocValuesFacetFields facetFields = new SortedSetDocValuesFacetFields();
add(indexWriter, facetFields, "Author/Bob", "Publish Year/2010");