From 595acd695e43bc3de3afe8c537866066ba9e5ff6 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Mon, 29 Oct 2012 13:09:21 +0100 Subject: [PATCH] lucene 4: s/reusableTokenStream/tokenStream --- .../action/admin/indices/analyze/TransportAnalyzeAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/action/admin/indices/analyze/TransportAnalyzeAction.java b/src/main/java/org/elasticsearch/action/admin/indices/analyze/TransportAnalyzeAction.java index 0bf769cc8e6..8de2c356c2c 100644 --- a/src/main/java/org/elasticsearch/action/admin/indices/analyze/TransportAnalyzeAction.java +++ b/src/main/java/org/elasticsearch/action/admin/indices/analyze/TransportAnalyzeAction.java @@ -198,7 +198,7 @@ public class TransportAnalyzeAction extends TransportSingleCustomOperationAction List 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);