public class SuggestHelper
extends java.lang.Object
Lookup
implementation under the hood.Modifier and Type | Class and Description |
---|---|
static class |
SuggestHelper.SuggestQuery |
Constructor and Description |
---|
SuggestHelper() |
Modifier and Type | Method and Description |
---|---|
static org.apache.lucene.analysis.Analyzer |
getAnalyzer() |
static org.apache.lucene.search.suggest.analyzing.AnalyzingInfixSuggester |
getLookup(org.apache.lucene.store.Directory suggestDirectory) |
static org.apache.lucene.search.suggest.analyzing.AnalyzingInfixSuggester |
getLookup(org.apache.lucene.store.Directory suggestDirectory,
org.apache.lucene.analysis.Analyzer analyzer) |
static org.apache.lucene.search.suggest.analyzing.AnalyzingInfixSuggester |
getLookup(org.apache.lucene.store.Directory suggestDirectory,
org.apache.lucene.analysis.Analyzer analyzer,
java.io.File tempDir) |
static java.util.List<org.apache.lucene.search.suggest.Lookup.LookupResult> |
getSuggestions(org.apache.lucene.search.suggest.analyzing.AnalyzingInfixSuggester suggester,
@Nullable SuggestHelper.SuggestQuery suggestQuery) |
static SuggestHelper.SuggestQuery |
getSuggestQuery(java.lang.String suggestQueryString) |
static void |
updateSuggester(org.apache.lucene.store.Directory directory,
org.apache.lucene.analysis.Analyzer analyzer,
org.apache.lucene.index.IndexReader reader,
com.google.common.io.Closer closer) |
public static void updateSuggester(org.apache.lucene.store.Directory directory, org.apache.lucene.analysis.Analyzer analyzer, org.apache.lucene.index.IndexReader reader, com.google.common.io.Closer closer) throws java.io.IOException
java.io.IOException
public static java.util.List<org.apache.lucene.search.suggest.Lookup.LookupResult> getSuggestions(org.apache.lucene.search.suggest.analyzing.AnalyzingInfixSuggester suggester, @Nullable @Nullable SuggestHelper.SuggestQuery suggestQuery)
public static SuggestHelper.SuggestQuery getSuggestQuery(java.lang.String suggestQueryString)
public static org.apache.lucene.search.suggest.analyzing.AnalyzingInfixSuggester getLookup(org.apache.lucene.store.Directory suggestDirectory) throws java.io.IOException
java.io.IOException
public static org.apache.lucene.search.suggest.analyzing.AnalyzingInfixSuggester getLookup(org.apache.lucene.store.Directory suggestDirectory, org.apache.lucene.analysis.Analyzer analyzer) throws java.io.IOException
java.io.IOException
public static org.apache.lucene.search.suggest.analyzing.AnalyzingInfixSuggester getLookup(org.apache.lucene.store.Directory suggestDirectory, org.apache.lucene.analysis.Analyzer analyzer, java.io.File tempDir) throws java.io.IOException
java.io.IOException
public static org.apache.lucene.analysis.Analyzer getAnalyzer()
Copyright © 2010 - 2020 Adobe. All Rights Reserved