public interface IssueIndexer extends UnmanagedIndexSearcherProvider, BackupContributor
Modifier and Type | Interface and Description |
---|---|
static class |
IssueIndexer.Analyzers |
Modifier and Type | Method and Description |
---|---|
Index.Result |
conditionalUpdateWithVersion(org.apache.lucene.document.Document issueDocument,
Collection<org.apache.lucene.document.Document> commentDocuments,
Collection<org.apache.lucene.document.Document> changeHistoryDocuments,
Collection<org.apache.lucene.document.Document> worklogDocuments)
Index an issue document with its related documents conditionally based on the entity ids and the versions
which are resolved by
IndexDirectoryFactory.Name.getEntityIdFromDocument(Document) and
IndexDirectoryFactory.Name.getEntityVersionFromDocument(Document) |
Index.Result |
conditionalUpdateWithVersion(IndexDirectoryFactory.Name indexName,
org.apache.lucene.document.Document document)
Index a
Document conditionally based on the entity id and the version which are resolved by
IndexDirectoryFactory.Name.getEntityIdFromDocument(Document) and
IndexDirectoryFactory.Name.getEntityVersionFromDocument(Document) |
Index.Result |
deindexComments(Collection<? extends WithId> comments,
Context context,
boolean shouldReplicate) |
Index.Result |
deindexIssues(Collection<? extends WithId> issues,
Context context)
Delete any existing documents (in the issue index & all related entity indexes) for the Issues represented by the supplied WithIds
|
Index.Result |
deindexIssues(Collection<? extends WithId> issues,
Context context,
boolean shouldReplicate)
Delete any existing documents (in the issue index & all related entity indexes) for the Issues represented by the supplied WithIds
|
default Index.Result |
deindexIssues(EnclosedIterable<Issue> issues,
Context context)
Deprecated.
will be removed in 9.0
|
Index.Result |
deIndexProject(Project project,
boolean shouldReplicate)
Remove all documents connected with given project
|
Index.Result |
deindexWorklogs(Collection<? extends WithId> worklogs,
Context context,
boolean shouldReplicate) |
void |
deleteIndexes()
Delete all indexes.
|
void |
deleteIndexes(IssueIndexingParams issueIndexingParams)
Delete selected indexes.
|
List<String> |
getIndexPaths() |
String |
getIndexRootPath() |
Index.Result |
indexIssues(EnclosedIterable<Issue> issues,
Context context)
Deprecated.
|
Index.Result |
indexIssues(EnclosedIterable<Issue> issues,
Context context,
IssueIndexingParams issueIndexingParams)
Add documents for the supplied issues.
|
AccumulatingResultBuilder |
indexIssuesBatchMode(IssuesBatcher batcher,
Context context,
IssueIndexingParams issueIndexingParams)
Index all issues from the given batcher.
|
Index.Result |
optimize() |
Index.Result |
reindexComments(Collection<Comment> comments,
Context context,
boolean shouldReplicate)
Reindex a collection of issue comments.
|
Index.Result |
reindexIssues(EnclosedIterable<Issue> issues,
Context context,
IssueIndexingParams issueIndexingParams,
boolean conditionalUpdate,
boolean shouldReplicate)
Re-index the given issues, delete any existing documents and add new ones.
|
Index.Result |
reindexWorklogs(Collection<Worklog> worklogs,
Context context,
boolean shouldReplicate) |
void |
shutdown() |
openEntitySearcher
contributeToBackup
@Deprecated Index.Result indexIssues(@Nonnull EnclosedIterable<Issue> issues, @Nonnull Context context)
indexIssues(com.atlassian.jira.util.collect.EnclosedIterable, com.atlassian.jira.task.context.Context, IssueIndexingParams)
insteadissues
- An iterable of issues to index.context
- for showing the user the current status.Index.Result indexIssues(@Nonnull EnclosedIterable<Issue> issues, @Nonnull Context context, @Nonnull IssueIndexingParams issueIndexingParams)
issues
- An iterable of issues to index.context
- for showing the user the current status.issueIndexingParams
- parameters describing what should be reindexedIndex.Result deindexIssues(@Nonnull Collection<? extends WithId> issues, @Nonnull Context context)
issues
- An iterable of WithIds for the Issues to de-index.context
- for showing the user the current status.Index.Result deindexIssues(@Nonnull Collection<? extends WithId> issues, @Nonnull Context context, boolean shouldReplicate)
issues
- An iterable of WithIds for the Issues to de-index.context
- for showing the user the current status.shouldReplicate
- whether or not the index changes should be replicated to the other nodes in the cluster.@Deprecated default Index.Result deindexIssues(@Nonnull EnclosedIterable<Issue> issues, @Nonnull Context context)
issues
- An EnclosedIterable of issues to de-index.context
- for showing the user the current status.Index.Result reindexIssues(@Nonnull EnclosedIterable<Issue> issues, @Nonnull Context context, @Nonnull IssueIndexingParams issueIndexingParams, boolean conditionalUpdate, boolean shouldReplicate)
issues
- An iterable of issues to index.context
- for showing the user the current status.issueIndexingParams
- parameters describing what should be reindexedconditionalUpdate
- set to true to use conditional updates when writing to the indexshouldReplicate
- whether or not the index changes should be replicated to the other nodes in the cluster.Index.Result reindexComments(@Nonnull Collection<Comment> comments, @Nonnull Context context, boolean shouldReplicate)
comments
- Comments to be reindexed.context
- for showing the user the current status.shouldReplicate
- whether or not the index changes should be replicated to the other nodes in the cluster.Index.Result reindexWorklogs(@Nonnull Collection<Worklog> worklogs, @Nonnull Context context, boolean shouldReplicate)
Index.Result deindexComments(@Nonnull Collection<? extends WithId> comments, @Nonnull Context context, boolean shouldReplicate)
Index.Result deindexWorklogs(@Nonnull Collection<? extends WithId> worklogs, @Nonnull Context context, boolean shouldReplicate)
Index.Result conditionalUpdateWithVersion(IndexDirectoryFactory.Name indexName, org.apache.lucene.document.Document document)
Document
conditionally based on the entity id and the version which are resolved by
IndexDirectoryFactory.Name.getEntityIdFromDocument(Document)
and
IndexDirectoryFactory.Name.getEntityVersionFromDocument(Document)
indexName
- define the target indexdocument
- the document needs to be indexedIndex.Result conditionalUpdateWithVersion(org.apache.lucene.document.Document issueDocument, Collection<org.apache.lucene.document.Document> commentDocuments, Collection<org.apache.lucene.document.Document> changeHistoryDocuments, Collection<org.apache.lucene.document.Document> worklogDocuments)
IndexDirectoryFactory.Name.getEntityIdFromDocument(Document)
and
IndexDirectoryFactory.Name.getEntityVersionFromDocument(Document)
issueDocument
- issue document needs to be indexedcommentDocuments
- issue's comment documentschangeHistoryDocuments
- issue's history change documentsworklogDocuments
- issue's worklog documents@GuardedBy(value="external indexing lock") AccumulatingResultBuilder indexIssuesBatchMode(@Nonnull IssuesBatcher batcher, @Nonnull Context context, @Nonnull IssueIndexingParams issueIndexingParams)
batcher
- An iterable over issue batches.context
- for showing the user the current status.issueIndexingParams
- parameters describing what should be reindexed@GuardedBy(value="external indexing lock") Index.Result optimize()
void deleteIndexes()
void deleteIndexes(@Nonnull IssueIndexingParams issueIndexingParams)
issueIndexingParams
- parameters describing which indexes should be deleted.Index.Result deIndexProject(Project project, boolean shouldReplicate)
project
- project objectshouldReplicate
- void shutdown()
String getIndexRootPath()
Copyright © 2002-2021 Atlassian. All Rights Reserved.