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:
Uwe Schindler 2009-06-02 13:12:22 +00:00
parent 9f2fdb26bf
commit cb9090da45
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute;
* for more than one document:
* <pre>
* <em>// init</em>
* TokenStream stream = new IntTrieTokenStream(precisionStep);
* IntTrieTokenStream stream = new IntTrieTokenStream(precisionStep);
* Field field = new Field(name, stream);
* field.setOmitNorms(true);
* field.setOmitTermFreqAndPositions(true);

View File

@ -46,7 +46,7 @@ import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute;
* for more than one document:
* <pre>
* <em>// init</em>
* TokenStream stream = new LongTrieTokenStream(precisionStep);
* LongTrieTokenStream stream = new LongTrieTokenStream(precisionStep);
* Field field = new Field(name, stream);
* field.setOmitNorms(true);
* field.setOmitTermFreqAndPositions(true);