mirror of
https://github.com/apache/lucene.git
synced 2025-02-09 03:25:15 +00:00
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:
parent
e1d5edea42
commit
e6f237d4c3
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user