com.atlassian.confluence.search.lucene
Class DefaultConfluenceBatchIndexer
java.lang.Object
com.atlassian.confluence.search.lucene.DefaultConfluenceBatchIndexer
- All Implemented Interfaces:
- com.atlassian.bonnie.search.BatchIndexer, ConfluenceBatchIndexer
public class DefaultConfluenceBatchIndexer
- extends java.lang.Object
- implements ConfluenceBatchIndexer
Field Summary |
protected com.atlassian.bonnie.analyzer.LuceneAnalyzerFactory |
analyzerFactory
|
protected com.atlassian.bonnie.AnyTypeObjectDao |
anyTypeObjectDao
|
static org.apache.log4j.Category |
LOG
|
protected com.atlassian.bonnie.index.BatchOpIndexer |
multiIndexer
|
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 com.atlassian.bonnie.index.BatchOpIndexer multiIndexer
analyzerFactory
protected com.atlassian.bonnie.analyzer.LuceneAnalyzerFactory analyzerFactory
anyTypeObjectDao
protected com.atlassian.bonnie.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(com.atlassian.core.util.ProgressMeter progress)
- Specified by:
indexEntities
in interface com.atlassian.bonnie.search.BatchIndexer
getEntityHandles
protected java.util.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 com.atlassian.bonnie.search.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(com.atlassian.event.EventManager eventManager)
setMultiIndexer
public void setMultiIndexer(com.atlassian.bonnie.index.BatchOpIndexer multiIndexer)
setAnalyzerFactory
public void setAnalyzerFactory(com.atlassian.bonnie.analyzer.LuceneAnalyzerFactory analyzerFactory)
setAnyTypeObjectDao
public void setAnyTypeObjectDao(com.atlassian.bonnie.AnyTypeObjectDao anyTypeObjectDao)
- Specified by:
setAnyTypeObjectDao
in interface com.atlassian.bonnie.search.BatchIndexer
setSessionFactory
public void setSessionFactory(net.sf.hibernate.SessionFactory sessionFactory)
setBootstrapManager
public void setBootstrapManager(BootstrapManager bootstrapManager)
setLuceneConnection
public void setLuceneConnection(ConfluenceLuceneConnection luceneConnection)
Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.