fix example apis

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1384793 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-09-14 14:16:22 +00:00
parent d7d79ad7c5
commit d6cee715e3
1 changed files with 2 additions and 2 deletions

View File

@ -360,8 +360,8 @@ use facets accumulators.
Following is a code snippet from the example code - the complete example can be
found under <code>org.apache.lucene.facet.example.simple.Searcher</code>:
<pre class="prettyprint lang-java linenums">
IndexReader indexReader = IndexReader.open(indexDir);
Searcher searcher = new IndexSearcher(indexReader);
IndexReader indexReader = DirectoryReader.open(indexDir);
IndexSearcher searcher = new IndexSearcher(indexReader);
TaxonomyReader taxo = new DirectoryTaxonomyReader(taxoDir);
...
Query q = new TermQuery(new Term(SimpleUtils.TEXT, "white"));