|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmagoffin.matt.ma2.lucene.AbstractLucenePlugin
public abstract class AbstractLucenePlugin
Base implementation for LucenePlugin implementations.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface magoffin.matt.lucene.LucenePlugin |
|---|
magoffin.matt.lucene.LucenePlugin.LuceneIndexConfig |
| Field Summary | |
|---|---|
static int |
DEFAULT_ERROR_PERCENT_MAX_FRACTION_DIGITS
Default number of error percent fraction digits. |
static int |
DEFAULT_REINDEX_COUNT
The default value for the infoReindexCount property. |
| Constructor Summary | |
|---|---|
AbstractLucenePlugin()
|
|
| Method Summary | |
|---|---|
protected void |
doAfterInit()
Method for extending classes to override if needed, called during the init(LuceneService, Set) method. |
magoffin.matt.lucene.SearchResults |
find(magoffin.matt.lucene.SearchCriteria criteria)
|
org.apache.lucene.analysis.Analyzer |
getAnalyzer()
|
magoffin.matt.lucene.LucenePlugin.LuceneIndexConfig |
getConfig()
|
DomainObjectFactory |
getDomainObjectFactory()
|
protected java.lang.String |
getIndexErrorMessage(java.util.List<java.lang.Object> indexErrors)
Get a single index error message from a list of index errors. |
protected java.util.Set<magoffin.matt.lucene.IndexListener> |
getIndexEventListeners()
Get the list of IndexLister objects. |
java.lang.String |
getIndexType()
|
int |
getInfoReindexCount()
|
protected magoffin.matt.lucene.LuceneService |
getLucene()
Get the LuceneService configured for this plugin. |
org.springframework.context.MessageSource |
getMessages()
|
protected java.lang.String |
getSingleIndexErrorMessage(java.lang.Object object)
Get an individual index error message. |
magoffin.matt.lucene.LucenePlugin.LuceneIndexConfig |
init(magoffin.matt.lucene.LuceneService luceneService,
java.util.Set<magoffin.matt.lucene.IndexListener> indexEventListenersSet)
|
void |
setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
|
void |
setConfig(magoffin.matt.lucene.LucenePlugin.LuceneIndexConfig config)
|
void |
setDomainObjectFactory(DomainObjectFactory domainObjectFactory)
|
void |
setIndexType(java.lang.String indexType)
|
void |
setInfoReindexCount(int infoReindexCount)
|
void |
setMessages(org.springframework.context.MessageSource messages)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface magoffin.matt.lucene.LucenePlugin |
|---|
build, getIdForObject, getNativeQuery, index, index, indexObject, reindex, reindex, search |
| Field Detail |
|---|
public static final int DEFAULT_REINDEX_COUNT
infoReindexCount property.
public static final int DEFAULT_ERROR_PERCENT_MAX_FRACTION_DIGITS
| Constructor Detail |
|---|
public AbstractLucenePlugin()
| Method Detail |
|---|
public final magoffin.matt.lucene.LucenePlugin.LuceneIndexConfig init(magoffin.matt.lucene.LuceneService luceneService,
java.util.Set<magoffin.matt.lucene.IndexListener> indexEventListenersSet)
init in interface magoffin.matt.lucene.LucenePluginprotected void doAfterInit()
init(LuceneService, Set) method.
This method implementation does not do anything.
init(LuceneService, Set)protected java.lang.String getIndexErrorMessage(java.util.List<java.lang.Object> indexErrors)
indexErrors - list of errors
protected java.lang.String getSingleIndexErrorMessage(java.lang.Object object)
object - the error message or exception
public magoffin.matt.lucene.SearchResults find(magoffin.matt.lucene.SearchCriteria criteria)
find in interface magoffin.matt.lucene.LucenePluginprotected magoffin.matt.lucene.LuceneService getLucene()
protected java.util.Set<magoffin.matt.lucene.IndexListener> getIndexEventListeners()
public int getInfoReindexCount()
public void setInfoReindexCount(int infoReindexCount)
infoReindexCount - the infoReindexCount to setpublic org.apache.lucene.analysis.Analyzer getAnalyzer()
getAnalyzer in interface magoffin.matt.lucene.LucenePluginpublic magoffin.matt.lucene.LucenePlugin.LuceneIndexConfig getConfig()
public void setConfig(magoffin.matt.lucene.LucenePlugin.LuceneIndexConfig config)
config - the config to setpublic void setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
analyzer - the analyzer to setpublic org.springframework.context.MessageSource getMessages()
public void setMessages(org.springframework.context.MessageSource messages)
messages - the messages to setpublic DomainObjectFactory getDomainObjectFactory()
public void setDomainObjectFactory(DomainObjectFactory domainObjectFactory)
domainObjectFactory - The domainObjectFactory to set.public java.lang.String getIndexType()
getIndexType in interface magoffin.matt.lucene.LucenePluginpublic void setIndexType(java.lang.String indexType)
indexType - the indexType to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||