| Package | Description |
|---|---|
| org.elasticsearch.search.suggest |
| Modifier and Type | Method and Description |
|---|---|
static int |
SuggestUtils.analyze(org.apache.lucene.analysis.Analyzer analyzer,
org.apache.lucene.util.BytesRef toAnalyze,
String field,
SuggestUtils.TokenConsumer consumer,
org.apache.lucene.util.CharsRefBuilder spare) |
static int |
SuggestUtils.analyze(org.apache.lucene.analysis.Analyzer analyzer,
org.apache.lucene.util.CharsRef toAnalyze,
String field,
SuggestUtils.TokenConsumer consumer) |
static int |
SuggestUtils.analyze(org.apache.lucene.analysis.TokenStream stream,
SuggestUtils.TokenConsumer consumer)
NOTE: this method closes the TokenStream, even on exception, which is awkward
because really the caller who called
Analyzer.tokenStream(java.lang.String, java.io.Reader) should close it,
but when trying that there are recursion issues when we try to use the same
TokenStrem twice in the same recursion... |
Copyright © 2009–2017. All rights reserved.