diff --git a/lucene/facet/src/java/org/apache/lucene/facet/doc-files/userguide.html b/lucene/facet/src/java/org/apache/lucene/facet/doc-files/userguide.html index ca68aca72ea..04c9fa5991c 100755 --- a/lucene/facet/src/java/org/apache/lucene/facet/doc-files/userguide.html +++ b/lucene/facet/src/java/org/apache/lucene/facet/doc-files/userguide.html @@ -261,7 +261,7 @@ Following is a code snippet for indexing categories. The complete example can be found in package org.apache.lucene.facet.example.simple.SimpleIndexer.
 IndexWriter writer = ...
-TaxonomyWriter taxo = new DirectoryTaxonomyWriter(taxoDir, OpenMode.CREATE);
+TaxonomyWriter taxo = new DirectoryTaxonomyWriter(taxoDir);
 ...
 Document doc = new Document();
 doc.add(new Field("title", titleText, Store.YES, Index.ANALYZED));