magoffin.matt.ma2.lucene
Class UserLucenePlugin

java.lang.Object
  extended by magoffin.matt.ma2.lucene.AbstractLucenePlugin
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface magoffin.matt.lucene.LucenePlugin
magoffin.matt.lucene.LucenePlugin.LuceneIndexConfig
 
Field Summary
 
Fields inherited from class magoffin.matt.ma2.lucene.AbstractLucenePlugin
DEFAULT_ERROR_PERCENT_MAX_FRACTION_DIGITS, DEFAULT_REINDEX_COUNT
 
Constructor Summary
UserLucenePlugin()
          Default constructor.
 
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
 

Constructor Detail

UserLucenePlugin

public UserLucenePlugin()
Default constructor.

Method Detail

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