public class LuceneSearchQueryBuilderFactory extends AbstractSearchQueryBuilderFactory
SearchQueryBuilderFactory
using lucene as underlying search-engine.Modifier and Type | Field and Description |
---|---|
private org.apache.lucene.analysis.Analyzer |
analyzer |
private LuceneFieldManagerFactory |
fieldManagerFactory |
private LuceneAnalyzer |
luceneAnalyzer |
private LuceneVersion |
luceneVersion |
Constructor and Description |
---|
LuceneSearchQueryBuilderFactory()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
LuceneSearchQueryBuilder |
createQueryBuilder(SearchConfigurationHolder<? extends SearchConfiguration> configurationHolder)
This method will create a new
SearchQueryBuilder . |
protected void |
doInitialize()
This method performs the actual
initialization . |
protected org.apache.lucene.analysis.Analyzer |
getAnalyzer() |
void |
setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer) |
void |
setFieldManagerFactory(LuceneFieldManagerFactory fieldManagerFactory) |
void |
setLuceneAnalyzer(LuceneAnalyzer luceneAnalyzer) |
void |
setLuceneVersion(LuceneVersion luceneVersion) |
createLogger, getLogger
doInitialized, getInitializationState, initialize
private org.apache.lucene.analysis.Analyzer analyzer
getAnalyzer()
private LuceneAnalyzer luceneAnalyzer
setLuceneAnalyzer(LuceneAnalyzer)
private LuceneVersion luceneVersion
setLuceneVersion(LuceneVersion)
private LuceneFieldManagerFactory fieldManagerFactory
public LuceneSearchQueryBuilderFactory()
protected org.apache.lucene.analysis.Analyzer getAnalyzer()
Analyzer
to use.public void setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
analyzer
- is the Analyzer
to set.@Inject public void setLuceneAnalyzer(LuceneAnalyzer luceneAnalyzer)
luceneAnalyzer
- is the LuceneAnalyzer
to inject.@Inject public void setLuceneVersion(LuceneVersion luceneVersion)
luceneVersion
- is the luceneVersion to set@Inject public void setFieldManagerFactory(LuceneFieldManagerFactory fieldManagerFactory)
fieldManagerFactory
- is the fieldManagerFactory 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 LuceneSearchQueryBuilder createQueryBuilder(SearchConfigurationHolder<? extends SearchConfiguration> configurationHolder)
SearchQueryBuilder
.configurationHolder
- is the SearchConfigurationHolder
. The
fields
will be used for the
query parsing and properties
may be used for implementation specific features.SearchQueryBuilder
.Copyright © 2001–2016 mmm-Team. All rights reserved.