public class

MultiThreadedIndexRebuilder

extends Object
implements BatchIndexer
java.lang.Object
   ↳ com.atlassian.confluence.search.lucene.MultiThreadedIndexRebuilder

Class Overview

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.

Summary

Public Constructors
MultiThreadedIndexRebuilder()
Public Methods
IndexingTask getLastReindexingTask()
void indexEntities(ProgressMeter progress)
boolean isReIndexRunning()
void reIndexAll()
void setAnalyzerFactory(LuceneAnalyzerFactory analyzerFactory)
void setAnyTypeDao(AnyTypeDao anyTypeDao)
void setBootstrapManager(BootstrapManager bootstrapManager)
void setEventPublisher(EventPublisher eventPublisher)
void setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
void setIndexManager(ConfluenceIndexManager indexManager)
void setIndexTaskFactory(IndexTaskFactory indexTaskFactory)
void setLuceneConnection(ILuceneConnection luceneConnection)
void setSearchableDao(SearchableDao searchableDao)
void setTransactionManager(PlatformTransactionManager transactionManager)
void unIndexAll()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.bonnie.search.BatchIndexer

Public Constructors

public MultiThreadedIndexRebuilder ()

Public Methods

public IndexingTask getLastReindexingTask ()

public void indexEntities (ProgressMeter progress)

public boolean isReIndexRunning ()

public void reIndexAll ()

public void setAnalyzerFactory (LuceneAnalyzerFactory analyzerFactory)

public void setAnyTypeDao (AnyTypeDao anyTypeDao)

public void setBootstrapManager (BootstrapManager bootstrapManager)

public void setEventPublisher (EventPublisher eventPublisher)

public void setI18NBeanFactory (I18NBeanFactory i18NBeanFactory)

public void setIndexManager (ConfluenceIndexManager indexManager)

public void setIndexTaskFactory (IndexTaskFactory indexTaskFactory)

public void setLuceneConnection (ILuceneConnection luceneConnection)

public void setSearchableDao (SearchableDao searchableDao)

public void setTransactionManager (PlatformTransactionManager transactionManager)

public void unIndexAll ()