remove CREATE when creating taxo writer

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1456118 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2013-03-13 20:24:18 +00:00
parent e48d0d44a9
commit 7b1b6b3399
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ Following is a code snippet for indexing categories. The complete example can be
found in package <code>org.apache.lucene.facet.example.simple.SimpleIndexer</code>.
<pre class="prettyprint lang-java linenums">
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));