magoffin.matt.ma2.lucene
Class MediaItemLucenePlugin
java.lang.Object
   magoffin.matt.ma2.lucene.AbstractLucenePlugin
magoffin.matt.ma2.lucene.AbstractLucenePlugin
       magoffin.matt.ma2.lucene.MediaItemLucenePlugin
magoffin.matt.ma2.lucene.MediaItemLucenePlugin
- All Implemented Interfaces: 
- magoffin.matt.lucene.LucenePlugin
- public class MediaItemLucenePlugin 
- extends AbstractLucenePlugin
Lucene search plugin implementation for MediaItem objects.
- Version:
- $Revision: 43 $ $Date: 2007-10-21 11:10:01 +1300 (Sun, 21 Oct 2007) $
- Author:
- Matt Magoffin (spamsqr@msqr.us)
 
| Nested classes/interfaces inherited from interface magoffin.matt.lucene.LucenePlugin | 
| magoffin.matt.lucene.LucenePlugin.LuceneIndexConfig | 
 
 
 
 
 
| 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 | 
 
MediaItemLucenePlugin
public MediaItemLucenePlugin()
- Default constructor.
 
build
public magoffin.matt.lucene.SearchMatch build(org.apache.lucene.document.Document doc)
- 
 
getIdForObject
public java.lang.Object getIdForObject(java.lang.Object object)
- 
 
getNativeQuery
public java.lang.Object getNativeQuery(magoffin.matt.lucene.SearchCriteria criteria)
- 
 
index
public void index(java.lang.Iterable<?> data)
- 
 
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)
- 
 
search
public java.util.List<magoffin.matt.lucene.SearchMatch> search(magoffin.matt.lucene.SearchCriteria criteria)
- 
 
getMediaItemDao
public MediaItemDao getMediaItemDao()
- 
- Returns:
- the mediaItemDao
 
setMediaItemDao
public void setMediaItemDao(MediaItemDao mediaItemDao)
- 
- Parameters:
- mediaItemDao- the mediaItemDao to set
 
isSingleThreaded
public boolean isSingleThreaded()
- 
- Returns:
- the singleThreaded
 
setSingleThreaded
public void setSingleThreaded(boolean singleThreaded)
- 
- Parameters:
- singleThreaded- the singleThreaded to set
 
getAlbumDao
public AlbumDao getAlbumDao()
- 
- Returns:
- the albumDao
 
setAlbumDao
public void setAlbumDao(AlbumDao albumDao)
- 
- Parameters:
- albumDao- the albumDao to set
 
getCollectionDao
public CollectionDao getCollectionDao()
- 
- Returns:
- the collectionDao
 
setCollectionDao
public void setCollectionDao(CollectionDao collectionDao)
- 
- Parameters:
- collectionDao- the collectionDao to set