com.atlassian.confluence.search
Class QueuingChangeIndexer

java.lang.Object
  extended by com.atlassian.confluence.search.QueuingChangeIndexer
All Implemented Interfaces:
com.atlassian.bonnie.Indexer, ChangeIndexer

public class QueuingChangeIndexer
extends java.lang.Object
implements ChangeIndexer


Constructor Summary
QueuingChangeIndexer()
           
 
Method Summary
 void index(com.atlassian.bonnie.Searchable searchable)
           
 void reIndex(com.atlassian.bonnie.Searchable searchable)
          Updates index documents associated with this changeable in the index.
 void reIndexAllVersions(com.atlassian.bonnie.Searchable searchable)
          Removes all versions of the changeable from the index and rebuilds them from scratch.
 void setIndexerControl(IndexerControl indexerControl)
           
 void setIndexTaskFactory(IndexTaskFactory indexTaskFactory)
           
 void setTaskQueue(IndexTaskQueue taskQueue)
           
 void unIndex(com.atlassian.bonnie.Searchable searchable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueuingChangeIndexer

public QueuingChangeIndexer()
Method Detail

index

public void index(com.atlassian.bonnie.Searchable searchable)
Specified by:
index in interface com.atlassian.bonnie.Indexer

unIndex

public void unIndex(com.atlassian.bonnie.Searchable searchable)
Specified by:
unIndex in interface com.atlassian.bonnie.Indexer

reIndex

public void reIndex(com.atlassian.bonnie.Searchable searchable)
Updates index documents associated with this changeable in the index. For versioned changeables, a new version is added (and selected versions removed to enforce one edit per user per content). For non-versioned changeables, only the single version is removed and re-inserted.

Specified by:
reIndex in interface com.atlassian.bonnie.Indexer
Parameters:
searchable - the changeable.

reIndexAllVersions

public void reIndexAllVersions(com.atlassian.bonnie.Searchable searchable)
Removes all versions of the changeable from the index and rebuilds them from scratch. Due to certain information being duplicated across all versions, a change in this information requires all versions to be rebuild and this method to be invoked instead of reIndex(com.atlassian.bonnie.Searchable).

Specified by:
reIndexAllVersions in interface ChangeIndexer
Parameters:
searchable - a Versioned changeable.

setTaskQueue

public void setTaskQueue(IndexTaskQueue taskQueue)

setIndexTaskFactory

public void setIndexTaskFactory(IndexTaskFactory indexTaskFactory)

setIndexerControl

public void setIndexerControl(IndexerControl indexerControl)


Copyright © 2003-2010 Atlassian. All Rights Reserved.