mirror of https://github.com/apache/lucene.git
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:
parent
d7d79ad7c5
commit
d6cee715e3
|
@ -360,8 +360,8 @@ use facets accumulators.
|
||||||
Following is a code snippet from the example code - the complete example can be
|
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>:
|
found under <code>org.apache.lucene.facet.example.simple.Searcher</code>:
|
||||||
<pre class="prettyprint lang-java linenums">
|
<pre class="prettyprint lang-java linenums">
|
||||||
IndexReader indexReader = IndexReader.open(indexDir);
|
IndexReader indexReader = DirectoryReader.open(indexDir);
|
||||||
Searcher searcher = new IndexSearcher(indexReader);
|
IndexSearcher searcher = new IndexSearcher(indexReader);
|
||||||
TaxonomyReader taxo = new DirectoryTaxonomyReader(taxoDir);
|
TaxonomyReader taxo = new DirectoryTaxonomyReader(taxoDir);
|
||||||
...
|
...
|
||||||
Query q = new TermQuery(new Term(SimpleUtils.TEXT, "white"));
|
Query q = new TermQuery(new Term(SimpleUtils.TEXT, "white"));
|
||||||
|
|
Loading…
Reference in New Issue