|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.search.lucene.MultiThreadedIndexRebuilder
public class MultiThreadedIndexRebuilder
Performs a rebuild the Confluence index using multithreaded approach. The index is first rebuilt into a temporary location, with each thread writing to its own temporary file. Once all workers have completed their respective indexing jobs, we merge all temporary file indexes together, truncate/delete the main index and then merge and promote the temporary index to be the main search index.
Constructor Summary | |
---|---|
MultiThreadedIndexRebuilder()
|
Method Summary | |
---|---|
IndexingTask |
getLastReindexingTask()
Retrieve the latest reindexing task. |
void |
indexEntities(com.atlassian.core.util.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(com.atlassian.bonnie.analyzer.LuceneAnalyzerFactory analyzerFactory)
|
void |
setAnyTypeDao(AnyTypeDao anyTypeDao)
|
void |
setBootstrapManager(BootstrapManager bootstrapManager)
|
void |
setEventManager(com.atlassian.event.EventManager eventManager)
|
void |
setIndexTaskFactory(IndexTaskFactory indexTaskFactory)
|
void |
setLuceneConnection(com.atlassian.bonnie.ILuceneConnection luceneConnection)
|
void |
setSearchableDao(SearchableDao searchableDao)
|
void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
|
void |
unIndexAll()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiThreadedIndexRebuilder()
Method Detail |
---|
public void reIndexAll()
IndexRebuilder
reIndexAll
in interface IndexRebuilder
public void indexEntities(com.atlassian.core.util.ProgressMeter progress)
indexEntities
in interface com.atlassian.bonnie.search.BatchIndexer
public void unIndexAll()
unIndexAll
in interface com.atlassian.bonnie.search.BatchIndexer
public boolean isReIndexRunning()
IndexRebuilder
isReIndexRunning
in interface IndexRebuilder
public IndexingTask getLastReindexingTask()
IndexRebuilder
getLastReindexingTask
in interface IndexRebuilder
public void setEventManager(com.atlassian.event.EventManager eventManager)
public void setAnalyzerFactory(com.atlassian.bonnie.analyzer.LuceneAnalyzerFactory analyzerFactory)
public void setSearchableDao(SearchableDao searchableDao)
public void setBootstrapManager(BootstrapManager bootstrapManager)
public void setLuceneConnection(com.atlassian.bonnie.ILuceneConnection luceneConnection)
public void setIndexTaskFactory(IndexTaskFactory indexTaskFactory)
public void setAnyTypeDao(AnyTypeDao anyTypeDao)
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |