mirror of https://github.com/apache/lucene.git
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:
parent
e48d0d44a9
commit
7b1b6b3399
|
@ -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>.
|
found in package <code>org.apache.lucene.facet.example.simple.SimpleIndexer</code>.
|
||||||
<pre class="prettyprint lang-java linenums">
|
<pre class="prettyprint lang-java linenums">
|
||||||
IndexWriter writer = ...
|
IndexWriter writer = ...
|
||||||
TaxonomyWriter taxo = new DirectoryTaxonomyWriter(taxoDir, OpenMode.CREATE);
|
TaxonomyWriter taxo = new DirectoryTaxonomyWriter(taxoDir);
|
||||||
...
|
...
|
||||||
Document doc = new Document();
|
Document doc = new Document();
|
||||||
doc.add(new Field("title", titleText, Store.YES, Index.ANALYZED));
|
doc.add(new Field("title", titleText, Store.YES, Index.ANALYZED));
|
||||||
|
|
Loading…
Reference in New Issue