public class LuceneSearchIndexerBuilder extends AbstractSearchIndexerBuilder
SearchIndexerBuilder
using lucene as underlying search-engine.Modifier and Type | Field and Description |
---|---|
private org.apache.lucene.analysis.Analyzer |
analyzer |
private LuceneFieldManagerFactory |
fiedManagerFactory |
private LuceneAnalyzer |
luceneAnalyzer |
private LuceneDirectoryBuilder |
luceneDirectoryBuilder |
private LuceneSearchEngineBuilder |
luceneSearchEngineBuilder |
private SearchDependencies |
searchDependencies |
Constructor and Description |
---|
LuceneSearchIndexerBuilder()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
SearchIndexer |
createIndexer(SearchIndexerConfigurationHolder configurationHolder,
SearchIndexerOptions options)
This method opens a new
SearchIndexer . |
protected void |
doInitialize()
This method performs the actual
initialization . |
protected org.apache.lucene.analysis.Analyzer |
getAnalyzer() |
void |
setAnalyzer(org.apache.lucene.analysis.Analyzer newAnalyzer) |
void |
setFiedManagerFactory(LuceneFieldManagerFactory fiedManagerFactory) |
void |
setLuceneAnalyzer(LuceneAnalyzer luceneAnalyzer) |
void |
setLuceneDirectoryBuilder(LuceneDirectoryBuilder luceneDirectoryBuilder) |
void |
setLuceneSearchEngineBuilder(LuceneSearchEngineBuilder luceneSearchEngineBuilder) |
void |
setSearchDependencies(SearchDependencies searchDependencies) |
createIndexer, createIndexer
createLogger, getLogger
doInitialized, getInitializationState, initialize
private LuceneAnalyzer luceneAnalyzer
setLuceneAnalyzer(LuceneAnalyzer)
private LuceneDirectoryBuilder luceneDirectoryBuilder
private org.apache.lucene.analysis.Analyzer analyzer
getAnalyzer()
private LuceneSearchEngineBuilder luceneSearchEngineBuilder
private LuceneFieldManagerFactory fiedManagerFactory
private SearchDependencies searchDependencies
protected org.apache.lucene.analysis.Analyzer getAnalyzer()
public void setAnalyzer(org.apache.lucene.analysis.Analyzer newAnalyzer)
newAnalyzer
- the analyzer to set@Inject public void setLuceneAnalyzer(LuceneAnalyzer luceneAnalyzer)
luceneAnalyzer
- is the luceneAnalyzer to set@Inject public void setLuceneDirectoryBuilder(LuceneDirectoryBuilder luceneDirectoryBuilder)
luceneDirectoryBuilder
- is the luceneDirectoryBuilder to set@Inject public void setLuceneSearchEngineBuilder(LuceneSearchEngineBuilder luceneSearchEngineBuilder)
luceneSearchEngineBuilder
- is the luceneSearchEngineBuilder to set@Inject public void setFiedManagerFactory(LuceneFieldManagerFactory fiedManagerFactory)
fiedManagerFactory
- is the fiedManagerFactory to set@Inject public void setSearchDependencies(SearchDependencies searchDependencies)
searchDependencies
- is the searchDependencies to setprotected void doInitialize()
initialization
. It is called when AbstractComponent.initialize()
is
invoked for the first time. super.
AbstractComponent.doInitialize()
.doInitialize
in class AbstractLoggableComponent
public SearchIndexer createIndexer(SearchIndexerConfigurationHolder configurationHolder, SearchIndexerOptions options) throws SearchException
SearchIndexer
. indexer
should be open at a time (for the same
location
). You have to
close
the indexer before calling this method again. configurationHolder
- is the SearchIndexerConfigurationHolder
.options
- are the SearchIndexerOptions
.SearchException
- if the operation failed.Copyright © 2001–2016 mmm-Team. All rights reserved.