lucene 4: s/reusableTokenStream/tokenStream
This commit is contained in:
parent
d531fa7a46
commit
595acd695e
|
@ -198,7 +198,7 @@ public class TransportAnalyzeAction extends TransportSingleCustomOperationAction
|
||||||
List<AnalyzeResponse.AnalyzeToken> tokens = Lists.newArrayList();
|
List<AnalyzeResponse.AnalyzeToken> tokens = Lists.newArrayList();
|
||||||
TokenStream stream = null;
|
TokenStream stream = null;
|
||||||
try {
|
try {
|
||||||
stream = analyzer.reusableTokenStream(field, new FastStringReader(request.text()));
|
stream = analyzer.tokenStream(field, new FastStringReader(request.text()));
|
||||||
stream.reset();
|
stream.reset();
|
||||||
CharTermAttribute term = stream.addAttribute(CharTermAttribute.class);
|
CharTermAttribute term = stream.addAttribute(CharTermAttribute.class);
|
||||||
PositionIncrementAttribute posIncr = stream.addAttribute(PositionIncrementAttribute.class);
|
PositionIncrementAttribute posIncr = stream.addAttribute(PositionIncrementAttribute.class);
|
||||||
|
|
Loading…
Reference in New Issue