mirror of https://github.com/apache/lucene.git
Fix incorrect example: setValue() is not a method of TokenStream, need more specific type. Thanks Mike
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@781029 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9f2fdb26bf
commit
cb9090da45
|
@ -46,7 +46,7 @@ import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute;
|
||||||
* for more than one document:
|
* for more than one document:
|
||||||
* <pre>
|
* <pre>
|
||||||
* <em>// init</em>
|
* <em>// init</em>
|
||||||
* TokenStream stream = new IntTrieTokenStream(precisionStep);
|
* IntTrieTokenStream stream = new IntTrieTokenStream(precisionStep);
|
||||||
* Field field = new Field(name, stream);
|
* Field field = new Field(name, stream);
|
||||||
* field.setOmitNorms(true);
|
* field.setOmitNorms(true);
|
||||||
* field.setOmitTermFreqAndPositions(true);
|
* field.setOmitTermFreqAndPositions(true);
|
||||||
|
|
|
@ -46,7 +46,7 @@ import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute;
|
||||||
* for more than one document:
|
* for more than one document:
|
||||||
* <pre>
|
* <pre>
|
||||||
* <em>// init</em>
|
* <em>// init</em>
|
||||||
* TokenStream stream = new LongTrieTokenStream(precisionStep);
|
* LongTrieTokenStream stream = new LongTrieTokenStream(precisionStep);
|
||||||
* Field field = new Field(name, stream);
|
* Field field = new Field(name, stream);
|
||||||
* field.setOmitNorms(true);
|
* field.setOmitNorms(true);
|
||||||
* field.setOmitTermFreqAndPositions(true);
|
* field.setOmitTermFreqAndPositions(true);
|
||||||
|
|
Loading…
Reference in New Issue