lucene 4: s/reusableTokenStream/tokenStream

This commit is contained in:
Simon Willnauer 2012-10-29 13:09:21 +01:00 committed by Shay Banon
parent d531fa7a46
commit 595acd695e
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ public class TransportAnalyzeAction extends TransportSingleCustomOperationAction
List<AnalyzeResponse.AnalyzeToken> tokens = Lists.newArrayList();
TokenStream stream = null;
try {
stream = analyzer.reusableTokenStream(field, new FastStringReader(request.text()));
stream = analyzer.tokenStream(field, new FastStringReader(request.text()));
stream.reset();
CharTermAttribute term = stream.addAttribute(CharTermAttribute.class);
PositionIncrementAttribute posIncr = stream.addAttribute(PositionIncrementAttribute.class);