docs wrongly refer to termAtt instead of tokenStream

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1533307 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David Wayne Smiley 2013-10-18 01:55:02 +00:00
parent e1d5edea42
commit e6f237d4c3

View File

@ -30,7 +30,7 @@ import org.apache.lucene.util.BytesRef;
* final TermToBytesRefAttribute termAtt = tokenStream.getAttribute(TermToBytesRefAttribute.class);
* final BytesRef bytes = termAtt.getBytesRef();
*
* while (termAtt.incrementToken() {
* while (tokenStream.incrementToken() {
*
* // you must call termAtt.fillBytesRef() before doing something with the bytes.
* // this encodes the term value (internally it might be a char[], etc) into the bytes.