com.atlassian.confluence.search.lucene
Class DefaultConfluenceBatchIndexer

java.lang.Object
  extended bycom.atlassian.confluence.search.lucene.DefaultConfluenceBatchIndexer
All Implemented Interfaces:
BatchIndexer, ConfluenceBatchIndexer

public class DefaultConfluenceBatchIndexer
extends Object
implements ConfluenceBatchIndexer


Field Summary
protected  LuceneAnalyzerFactory analyzerFactory
           
protected  AnyTypeObjectDao anyTypeObjectDao
           
static org.apache.log4j.Category LOG
           
protected  BatchOpIndexer multiIndexer
           
 
Constructor Summary
DefaultConfluenceBatchIndexer()
           
 
Method Summary
protected  List getEntityHandles()
          CONF-4309 We want the handles with attachments last.
 IndexingTask getLastReindexingTask()
          Retrieve the latest reindexing task.
 void indexEntities(ProgressMeter progress)
           
 boolean isReIndexRunning()
          Returns true if a full content reindex is currently running, false otherwise.
 void reIndexAll()
          Trigger a full content reindex.
 void setAnalyzerFactory(LuceneAnalyzerFactory analyzerFactory)
           
 void setAnyTypeObjectDao(AnyTypeObjectDao anyTypeObjectDao)
           
 void setBootstrapManager(BootstrapManager bootstrapManager)
           
 void setEventManager(EventManager eventManager)
           
 void setLuceneConnection(ConfluenceLuceneConnection luceneConnection)
           
 void setMultiIndexer(BatchOpIndexer multiIndexer)
           
 void setSessionFactory(net.sf.hibernate.SessionFactory sessionFactory)
           
 void setUserAccessor(UserAccessor userAccessor)
           
 void unIndexAll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.log4j.Category LOG

multiIndexer

protected BatchOpIndexer multiIndexer

analyzerFactory

protected LuceneAnalyzerFactory analyzerFactory

anyTypeObjectDao

protected AnyTypeObjectDao anyTypeObjectDao
Constructor Detail

DefaultConfluenceBatchIndexer

public DefaultConfluenceBatchIndexer()
Method Detail

reIndexAll

public void reIndexAll()
Description copied from interface: ConfluenceBatchIndexer
Trigger a full content reindex.

Specified by:
reIndexAll in interface ConfluenceBatchIndexer

indexEntities

public void indexEntities(ProgressMeter progress)
Specified by:
indexEntities in interface BatchIndexer

getEntityHandles

protected List getEntityHandles()
CONF-4309 We want the handles with attachments last. We also delay indexing personal info because it's quite expensive


unIndexAll

public void unIndexAll()
Specified by:
unIndexAll in interface BatchIndexer

isReIndexRunning

public boolean isReIndexRunning()
Description copied from interface: ConfluenceBatchIndexer
Returns true if a full content reindex is currently running, false otherwise.

Specified by:
isReIndexRunning in interface ConfluenceBatchIndexer

getLastReindexingTask

public IndexingTask getLastReindexingTask()
Description copied from interface: ConfluenceBatchIndexer
Retrieve the latest reindexing task. This task can be queries for the progress of the indexing amongst other things.

Specified by:
getLastReindexingTask in interface ConfluenceBatchIndexer
Returns:
the latest reindexing task or null if no full re-index has run.

setEventManager

public void setEventManager(EventManager eventManager)

setUserAccessor

public void setUserAccessor(UserAccessor userAccessor)

setMultiIndexer

public void setMultiIndexer(BatchOpIndexer multiIndexer)

setAnalyzerFactory

public void setAnalyzerFactory(LuceneAnalyzerFactory analyzerFactory)

setAnyTypeObjectDao

public void setAnyTypeObjectDao(AnyTypeObjectDao anyTypeObjectDao)
Specified by:
setAnyTypeObjectDao in interface BatchIndexer

setSessionFactory

public void setSessionFactory(net.sf.hibernate.SessionFactory sessionFactory)

setBootstrapManager

public void setBootstrapManager(BootstrapManager bootstrapManager)

setLuceneConnection

public void setLuceneConnection(ConfluenceLuceneConnection luceneConnection)


Confluence is developed by Atlassian.