public interface

IssueIndexer

com.atlassian.jira.issue.index.IssueIndexer
Known Indirect Subclasses

Summary

Nested Classes
class IssueIndexer.Analyzers  
Public Methods
Index.Result deindexIssues(EnclosedIterable<Issue> issues, Context context)
Delete any existing documents for the supplied issues.
void deleteIndexes(IssueIndexingParams issueIndexingParams)
Delete selected indexes.
void deleteIndexes()
Delete all indexes.
List<String> getIndexPaths()
String getIndexRootPath()
Index.Result indexIssues(EnclosedIterable<Issue> issues, Context context, IssueIndexingParams issueIndexingParams)
Add documents for the supplied issues.
@Deprecated Index.Result indexIssues(EnclosedIterable<Issue> issues, Context context)
Index.Result indexIssuesBatchMode(EnclosedIterable<Issue> issues, Context context, IssueIndexingParams issueIndexingParams)
Index the given issues, use whatever is in your arsenal to do it as FAST as possible.
Index.Result indexIssuesBatchMode(EnclosedIterable<Issue> issues, Context context)
IndexSearcher openEntitySearcher(IndexDirectoryFactory.Name index)
Issue searcher has to be closed after doing stuff.
Index.Result optimize()
Index.Result reindexComments(Collection<Comment> comments, Context context)
Reindex a collection of issue comments.
@Deprecated Index.Result reindexIssues(EnclosedIterable<Issue> issues, Context context, boolean reIndexComments, boolean reIndexChangeHistory, boolean conditionalUpdate)
Index.Result reindexIssues(EnclosedIterable<Issue> issues, Context context, IssueIndexingParams issueIndexingParams, boolean conditionalUpdate)
Re-index the given issues, delete any existing documents and add new ones.
Index.Result reindexWorklogs(Collection<Worklog> worklogs, Context context)
void shutdown()

Public Methods

public Index.Result deindexIssues (EnclosedIterable<Issue> issues, Context context)

Delete any existing documents for the supplied issues.

Parameters
issues An iterable of issues to index.
context for showing the user the current status.

public void deleteIndexes (IssueIndexingParams issueIndexingParams)

Delete selected indexes.

Parameters
issueIndexingParams parameters describing which indexes should be deleted.

public void deleteIndexes ()

Delete all indexes.

public List<String> getIndexPaths ()

public String getIndexRootPath ()

public Index.Result indexIssues (EnclosedIterable<Issue> issues, Context context, IssueIndexingParams issueIndexingParams)

Add documents for the supplied issues.

Parameters
issues An iterable of issues to index.
context for showing the user the current status.
issueIndexingParams parameters describing what should be reindexed

@Deprecated public Index.Result indexIssues (EnclosedIterable<Issue> issues, Context context)

This method is deprecated.
since 6.4 use indexIssues(com.atlassian.jira.util.collect.EnclosedIterable, com.atlassian.jira.task.context.Context, IssueIndexingParams) instead

Add documents for the supplied issues.

Parameters
issues An iterable of issues to index.
context for showing the user the current status.

public Index.Result indexIssuesBatchMode (EnclosedIterable<Issue> issues, Context context, IssueIndexingParams issueIndexingParams)

Index the given issues, use whatever is in your arsenal to do it as FAST as possible.

Parameters
issues An iterable of issues to index.
context for showing the user the current status.
issueIndexingParams parameters describing what should be reindexed

public Index.Result indexIssuesBatchMode (EnclosedIterable<Issue> issues, Context context)

This method is deprecated.
since 6.4 use indexIssuesBatchMode(com.atlassian.jira.util.collect.EnclosedIterable, com.atlassian.jira.task.context.Context, IssueIndexingParams) instead

Index the given issues, use whatever is in your arsenal to do it as FAST as possible.

Parameters
issues An iterable of issues to index.
context for showing the user the current status.

public IndexSearcher openEntitySearcher (IndexDirectoryFactory.Name index)

Issue searcher has to be closed after doing stuff.

public Index.Result optimize ()

public Index.Result reindexComments (Collection<Comment> comments, Context context)

Reindex a collection of issue comments.

Parameters
comments Comments to be reindexed.
context for showing the user the current status.

@Deprecated public Index.Result reindexIssues (EnclosedIterable<Issue> issues, Context context, boolean reIndexComments, boolean reIndexChangeHistory, boolean conditionalUpdate)

This method is deprecated.
since 6.4 use reindexIssues(com.atlassian.jira.util.collect.EnclosedIterable, com.atlassian.jira.task.context.Context, IssueIndexingParams, boolean) instead

Re-index the given issues, delete any existing documents and add new ones. This method defaults the value of reIndexWorklogs to false

Parameters
issues An iterable of issues to index.
context for showing the user the current status.
reIndexComments Set to true if you require issue comments to also be reindexed.
reIndexChangeHistory Set to true if you require issue change history to also be reindexed.
conditionalUpdate set to true to use conditional updates when writing to the index

public Index.Result reindexIssues (EnclosedIterable<Issue> issues, Context context, IssueIndexingParams issueIndexingParams, boolean conditionalUpdate)

Re-index the given issues, delete any existing documents and add new ones.

Parameters
issues An iterable of issues to index.
context for showing the user the current status.
issueIndexingParams parameters describing what should be reindexed
conditionalUpdate set to true to use conditional updates when writing to the index

public Index.Result reindexWorklogs (Collection<Worklog> worklogs, Context context)

public void shutdown ()