org.outerj.daisy.ftindex
Class FullTextIndexImpl
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.outerj.daisy.ftindex.FullTextIndexImpl
- All Implemented Interfaces:
- org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, org.outerj.daisy.backuplock.SuspendableProcess, FullTextIndex, FullTextIndexImplMBean
public class FullTextIndexImpl
- extends org.apache.avalon.framework.logger.AbstractLogEnabled
- implements FullTextIndex, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.configuration.Configurable, FullTextIndexImplMBean, org.outerj.daisy.backuplock.SuspendableProcess, org.apache.avalon.framework.activity.Disposable
|
Method Summary |
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
|
void |
dispose()
|
java.lang.String |
getIndexerStatus()
|
boolean |
getIndexExists()
|
void |
index(long documentId,
long branchId,
long languageId,
java.lang.String documentName,
java.lang.String content,
java.lang.String fields)
Index the given content for the given document variant. |
void |
initialize()
|
java.lang.String |
optimizeIndex()
|
void |
resumeExecution()
|
Hits |
search(java.lang.String queryAsString,
long branchId,
long languageId,
boolean searchName,
boolean searchContent,
boolean searchFields)
|
void |
service(org.apache.avalon.framework.service.ServiceManager serviceManager)
|
boolean |
suspendExecution(long msecs)
|
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FullTextIndexImpl
public FullTextIndexImpl()
configure
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
service
public void service(org.apache.avalon.framework.service.ServiceManager serviceManager)
throws org.apache.avalon.framework.service.ServiceException
- Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
- Throws:
org.apache.avalon.framework.service.ServiceException
initialize
public void initialize()
throws java.lang.Exception
- Specified by:
initialize in interface org.apache.avalon.framework.activity.Initializable
- Throws:
java.lang.Exception
dispose
public void dispose()
- Specified by:
dispose in interface org.apache.avalon.framework.activity.Disposable
suspendExecution
public boolean suspendExecution(long msecs)
throws java.lang.InterruptedException
- Specified by:
suspendExecution in interface org.outerj.daisy.backuplock.SuspendableProcess
- Throws:
java.lang.InterruptedException
resumeExecution
public void resumeExecution()
- Specified by:
resumeExecution in interface org.outerj.daisy.backuplock.SuspendableProcess
search
public Hits search(java.lang.String queryAsString,
long branchId,
long languageId,
boolean searchName,
boolean searchContent,
boolean searchFields)
throws org.outerj.daisy.repository.query.QueryException
- Specified by:
search in interface FullTextIndex
- Throws:
org.outerj.daisy.repository.query.QueryException
index
public void index(long documentId,
long branchId,
long languageId,
java.lang.String documentName,
java.lang.String content,
java.lang.String fields)
throws java.lang.Exception
- Description copied from interface:
FullTextIndex
- Index the given content for the given document variant.
This will first delete any previous indexed content for that document variant, and then index
the new content.
The parameters documentName, content and fields are all optional (can all be null),
if they are all null then the index for this document will just be deleted.
- Specified by:
index in interface FullTextIndex
- Throws:
java.lang.Exception
optimizeIndex
public java.lang.String optimizeIndex()
- Specified by:
optimizeIndex in interface FullTextIndexImplMBean
getIndexExists
public boolean getIndexExists()
- Specified by:
getIndexExists in interface FullTextIndexImplMBean
getIndexerStatus
public java.lang.String getIndexerStatus()
- Specified by:
getIndexerStatus in interface FullTextIndexImplMBean
Copyright © -2006 . All Rights Reserved.