magoffin.matt.ma2.lucene
Class UserLucenePlugin
java.lang.Object
magoffin.matt.ma2.lucene.AbstractLucenePlugin
magoffin.matt.ma2.lucene.UserLucenePlugin
- All Implemented Interfaces:
- magoffin.matt.lucene.LucenePlugin
public class UserLucenePlugin
- extends AbstractLucenePlugin
Lucene search plugin implementation for User objects.
- Version:
- $Revision: 43 $ $Date: 2007-10-21 11:10:01 +1300 (Sun, 21 Oct 2007) $
- Author:
- matt.magoffin
Nested classes/interfaces inherited from interface magoffin.matt.lucene.LucenePlugin |
magoffin.matt.lucene.LucenePlugin.LuceneIndexConfig |
Method Summary |
magoffin.matt.lucene.SearchMatch |
build(org.apache.lucene.document.Document doc)
|
java.lang.Object |
getIdForObject(java.lang.Object object)
|
java.lang.Object |
getNativeQuery(magoffin.matt.lucene.SearchCriteria criteria)
|
UserDao |
getUserDao()
|
void |
index(java.lang.Iterable<?> data)
|
void |
index(java.lang.Object objectId,
org.apache.lucene.index.IndexWriter writer)
|
void |
indexObject(java.lang.Object object,
org.apache.lucene.index.IndexWriter writer)
|
boolean |
isSingleThreaded()
|
magoffin.matt.lucene.IndexResults |
reindex()
|
magoffin.matt.lucene.IndexResults |
reindex(magoffin.matt.lucene.SearchCriteria criteria)
|
java.util.List<magoffin.matt.lucene.SearchMatch> |
search(magoffin.matt.lucene.SearchCriteria criteria)
|
void |
setSingleThreaded(boolean singleThreaded)
|
void |
setUserDao(UserDao userDao)
|
Methods inherited from class magoffin.matt.ma2.lucene.AbstractLucenePlugin |
doAfterInit, find, getAnalyzer, getConfig, getDomainObjectFactory, getIndexErrorMessage, getIndexEventListeners, getIndexType, getInfoReindexCount, getLucene, getMessages, getSingleIndexErrorMessage, init, setAnalyzer, setConfig, setDomainObjectFactory, setIndexType, setInfoReindexCount, setMessages |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserLucenePlugin
public UserLucenePlugin()
- Default constructor.
getIdForObject
public java.lang.Object getIdForObject(java.lang.Object object)
index
public void index(java.lang.Object objectId,
org.apache.lucene.index.IndexWriter writer)
indexObject
public void indexObject(java.lang.Object object,
org.apache.lucene.index.IndexWriter writer)
reindex
public magoffin.matt.lucene.IndexResults reindex()
reindex
public magoffin.matt.lucene.IndexResults reindex(magoffin.matt.lucene.SearchCriteria criteria)
index
public void index(java.lang.Iterable<?> data)
search
public java.util.List<magoffin.matt.lucene.SearchMatch> search(magoffin.matt.lucene.SearchCriteria criteria)
getNativeQuery
public java.lang.Object getNativeQuery(magoffin.matt.lucene.SearchCriteria criteria)
build
public magoffin.matt.lucene.SearchMatch build(org.apache.lucene.document.Document doc)
getUserDao
public UserDao getUserDao()
- Returns:
- the userDao
setUserDao
public void setUserDao(UserDao userDao)
- Parameters:
userDao
- the userDao to set
isSingleThreaded
public boolean isSingleThreaded()
- Returns:
- the singleThreaded
setSingleThreaded
public void setSingleThreaded(boolean singleThreaded)
- Parameters:
singleThreaded
- the singleThreaded to set