com.atlassian.confluence.search
Class QueuingChangeIndexer
java.lang.Object
com.atlassian.confluence.search.QueuingChangeIndexer
- All Implemented Interfaces:
- com.atlassian.bonnie.Indexer, ChangeIndexer
public class QueuingChangeIndexer
- extends java.lang.Object
- implements ChangeIndexer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueuingChangeIndexer
public QueuingChangeIndexer()
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.