Modifier and Type | Field and Description |
---|---|
static Set<String> |
CONTENT_TYPES_TO_SKIP
when it comes to reindexing, CONTENT_ONLY implies everything but these types.
|
Constructor and Description |
---|
ConfluenceReIndexer(com.atlassian.event.api.EventPublisher eventPublisher,
SearchableDao searchableDao,
com.atlassian.bonnie.ILuceneConnection luceneConnection,
IndexTaskFactory indexTaskFactory,
AnyTypeDao anyTypeDao,
org.springframework.transaction.PlatformTransactionManager transactionManager,
com.atlassian.bonnie.search.DocumentBuilder documentBuilder,
LuceneSearchMapper luceneSearchMapper) |
Modifier and Type | Method and Description |
---|---|
void |
reIndex(Set<ReIndexOption> options,
SearchQuery searchQuery,
Progress progress)
Triggers a system wide re-index.
|
public ConfluenceReIndexer(com.atlassian.event.api.EventPublisher eventPublisher, SearchableDao searchableDao, com.atlassian.bonnie.ILuceneConnection luceneConnection, IndexTaskFactory indexTaskFactory, AnyTypeDao anyTypeDao, org.springframework.transaction.PlatformTransactionManager transactionManager, com.atlassian.bonnie.search.DocumentBuilder documentBuilder, LuceneSearchMapper luceneSearchMapper)
public void reIndex(Set<ReIndexOption> options, SearchQuery searchQuery, Progress progress)
ReIndexer
reIndex
in interface ReIndexer
options
- Optional. Allows a subset of all searchable content to be re-indexed.searchQuery
- Optional. A lucene query that may be used to load the entities to be re-indexed.
Pass null to index all entities from the database.progress
- object to track progress of re-index.Copyright © 2003–2016 Atlassian. All rights reserved.