public class AnalysisService extends AbstractIndexComponent implements Closeable
deprecationLogger, index, indexSettings, logger
Constructor and Description |
---|
AnalysisService(Index index,
IndexSettingsService indexSettingsService,
IndicesAnalysisService indicesAnalysisService,
Map<String,AnalyzerProviderFactory> analyzerFactoryFactories,
Map<String,TokenizerFactoryFactory> tokenizerFactoryFactories,
Map<String,CharFilterFactoryFactory> charFilterFactoryFactories,
Map<String,TokenFilterFactoryFactory> tokenFilterFactoryFactories) |
AnalysisService(Index index,
Settings indexSettings) |
Modifier and Type | Method and Description |
---|---|
NamedAnalyzer |
analyzer(String name) |
CharFilterFactory |
charFilter(String name) |
void |
close() |
NamedAnalyzer |
defaultIndexAnalyzer() |
NamedAnalyzer |
defaultSearchAnalyzer() |
NamedAnalyzer |
defaultSearchQuoteAnalyzer() |
TokenFilterFactory |
tokenFilter(String name) |
TokenizerFactory |
tokenizer(String name) |
index, indexSettings
@Inject public AnalysisService(Index index, IndexSettingsService indexSettingsService, @Nullable IndicesAnalysisService indicesAnalysisService, @Nullable Map<String,AnalyzerProviderFactory> analyzerFactoryFactories, @Nullable Map<String,TokenizerFactoryFactory> tokenizerFactoryFactories, @Nullable Map<String,CharFilterFactoryFactory> charFilterFactoryFactories, @Nullable Map<String,TokenFilterFactoryFactory> tokenFilterFactoryFactories)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public NamedAnalyzer analyzer(String name)
public NamedAnalyzer defaultIndexAnalyzer()
public NamedAnalyzer defaultSearchAnalyzer()
public NamedAnalyzer defaultSearchQuoteAnalyzer()
public TokenizerFactory tokenizer(String name)
public CharFilterFactory charFilter(String name)
public TokenFilterFactory tokenFilter(String name)
Copyright © 2009–2016. All rights reserved.