magoffin.matt.ma2.lucene
Class MediaItemLucenePlugin

java.lang.Object
  extended by magoffin.matt.ma2.lucene.AbstractLucenePlugin
      extended by 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 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
MediaItemLucenePlugin()
          Default constructor.
 
Method Summary
 magoffin.matt.lucene.SearchMatch build(org.apache.lucene.document.Document doc)
           
 AlbumDao getAlbumDao()
           
 CollectionDao getCollectionDao()
           
 java.lang.Object getIdForObject(java.lang.Object object)
           
 MediaItemDao getMediaItemDao()
           
 java.lang.Object getNativeQuery(magoffin.matt.lucene.SearchCriteria criteria)
           
 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 setAlbumDao(AlbumDao albumDao)
           
 void setCollectionDao(CollectionDao collectionDao)
           
 void setMediaItemDao(MediaItemDao mediaItemDao)
           
 void setSingleThreaded(boolean singleThreaded)
           
 
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

MediaItemLucenePlugin

public MediaItemLucenePlugin()
Default constructor.

Method Detail

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