com.atlassian.confluence.search.lucene
Class DefaultConfluenceBatchIndexer
java.lang.Object
com.atlassian.confluence.search.lucene.DefaultConfluenceBatchIndexer
- All Implemented Interfaces:
- BatchIndexer, ConfluenceBatchIndexer
- public class DefaultConfluenceBatchIndexer
- extends Object
- implements ConfluenceBatchIndexer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.log4j.Category LOG
multiIndexer
protected BatchOpIndexer multiIndexer
analyzerFactory
protected LuceneAnalyzerFactory analyzerFactory
anyTypeObjectDao
protected AnyTypeObjectDao anyTypeObjectDao
DefaultConfluenceBatchIndexer
public DefaultConfluenceBatchIndexer()
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)