java.lang.Object | |
↳ | com.atlassian.jira.issue.index.DefaultIndexManager |
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ANALYZER_FOR_INDEXING | |||||||||||
ANALYZER_FOR_SEARCHING |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Activates search indexes.
| |||||||||||
Activates search indexes.
| |||||||||||
Remove an issue from the search index.
| |||||||||||
Remove an issue from the search index.
| |||||||||||
Remove a set of issues from the search index.
| |||||||||||
De-activates indexing (as happens from the admin page) and removes index directories.
| |||||||||||
Returns an
Analyzer for indexing. | |||||||||||
Returns an
Analyzer for searching. | |||||||||||
Get an
IndexSearcher that can be used to search the change history index. | |||||||||||
Get an
IndexSearcher that can be used to search the comment index. | |||||||||||
Returns a collection of Strings, each one representing the absolute path to the actual existing directory
where a plugin keeps its indexes.
| |||||||||||
Get an
IndexSearcher that can be used to search the issue index. | |||||||||||
Get the root path of the index directory for plugins.
| |||||||||||
Get an
IndexSearcher that can be used to search the worklog index. | |||||||||||
Temporarily suspend indexing on this thread.
| |||||||||||
Return true if the index is held.
| |||||||||||
Whether this index is available.
| |||||||||||
Optimize the underlying indexes.
| |||||||||||
Reindex an issue (eg.
| |||||||||||
Reindex an issue (eg.
| |||||||||||
Reindex an issue (eg.
| |||||||||||
Reindex an issue (eg.
| |||||||||||
Reindex everything.
| |||||||||||
Reindex all issues.
| |||||||||||
Reindex all issues.
| |||||||||||
Reindex all issues.
| |||||||||||
Reindex indexes defined by the
IssueIndexingParams . | |||||||||||
Reindex all issues.
| |||||||||||
Reindex everything, but don't stop the world
Comments and change history will not be reindexed.
| |||||||||||
Reindex everything, but don't stop the world
| |||||||||||
Reindexes a collection of comments.
| |||||||||||
Reindexes a collection of comments.
| |||||||||||
Reindexes a collection of comments.
| |||||||||||
Reindex a set of issues.
| |||||||||||
Reindex a set of issues.
| |||||||||||
Reindex a set of issues.
| |||||||||||
Reindex a set of issues.
| |||||||||||
Reindex a set of issues.
| |||||||||||
Reindex a set of issues (GenericValues).
| |||||||||||
Reindex a list of issues, passing an optional event that will be set progress
| |||||||||||
Reindex a list of issues, passing an optional event that will be set progress.
| |||||||||||
Reindex a list of issues, passing an optional event that will be set progress.
| |||||||||||
Reindex everything, but don't stop the world
| |||||||||||
Reindexes a collection of worklogs.
| |||||||||||
Reindexes a collection of worklogs.
| |||||||||||
Reindexes a collection of worklogs.
| |||||||||||
Release indexing on this thread.
| |||||||||||
Shuts down the indexing manager and closes its resources (if any).
| |||||||||||
This method takes a runnable that is run under the 'stop the world' reindex lock.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Activates search indexes. This will rebuild the indexes.
context | used to report progress back to the user or to the logs. Must not be null. |
---|
Activates search indexes.
context | used to report progress back to the user or to the logs. Must not be null. |
---|---|
reindex | reindex after activation. |
Remove an issue from the search index.
IndexException |
---|
Remove a set of issues from the search index.
IndexException |
---|
De-activates indexing (as happens from the admin page) and removes index directories.
Returns an Analyzer
for indexing.
Returns an Analyzer
for searching.
Get an IndexSearcher
that can be used to search the change history index.
Note: This is an unmanaged IndexSearcher. You MUST call close()
when you are done with it.
Alternatively you should really call passing in
CHANGE_HISTORY_INDEX
as it is a managed searcher and all the closing semantics are handled
for you.
Get an IndexSearcher
that can be used to search the comment index.
Note: This is an unmanaged IndexSearcher. You MUST call close()
when you are done with it.
Alternatively you should really call passing in
COMMENT_INDEX
as it is a managed searcher and all the closing semantics are handled for
you.
Returns a collection of Strings, each one representing the absolute path to the actual existing directory
where a plugin keeps its indexes. Each directory in the collection should be a sub-directory under the plugin's
index root path. See getPluginsRootPath()
.
If a plugin index root path does not exist, or is empty (no sub-directopries exist) then an empty collection will be returned.
Get an IndexSearcher
that can be used to search the issue index.
Note: This is an unmanaged IndexSearcher. You MUST call close()
when you are done with it.
Alternatively you should really call passing in
ISSUE_INDEX
as it is a managed searcher and all the closing semantics are handled for
you.
Get the root path of the index directory for plugins. Any plugin that keeps indexes should create its own sub-directory under this path and create its indexes in its own sub-directory
Get an IndexSearcher
that can be used to search the worklog index.
Note: This is an unmanaged IndexSearcher. You MUST call close()
when you are done with it.
Alternatively you should really call passing in
WORKLOG_INDEX
as it is a managed searcher and all the closing semantics are handled for
you.
Temporarily suspend indexing on this thread. All index requests will be queued and processed when release is called.
Return true if the index is held.
Whether this index is available. The index is not available if the index is being rebuilt or recovered. In a clustered environment this reflects only the state on the local node.
Optimize the underlying indexes. Make the subsequent searching more efficient.
Reindex an issue (eg. after field updates).
IndexException |
---|
Reindex an issue (eg. after field updates).
IndexException |
---|
Reindex an issue (eg. after field updates).
IndexException |
---|
Reindex everything.
context | used to report progress back to the user or to the logs. Must not be null. |
---|
Reindex all issues. If the useBackgroundReindexing option is set to true, then only the basic issue information will be reindexed, unless the indexing parameters are also set. This is considered the normal mode for background re-indexing and is sufficient to correct the index for changes in the system configuration, but not for changes to the indexing language. If useBackgroundReindexing is set to false, than everything is always reindexed.
context | used to report progress back to the user or to the logs. Must not be null |
---|---|
useBackgroundIndexing | whether to index in the background or not |
issueIndexingParams | determines witch related objects should be indexed together with issues. Only relevant for background reindex operations. |
updateReplicatedIndex | whether to update the replicated index or not |
Reindex all issues.
context | used to report progress back to the user or to the logs. Must not be null |
---|---|
useBackgroundIndexing | whether to index in the background or not. If the useBackgroundReindexing option is set to true, then all related fields will not be reindexed. |
updateReplicatedIndex | whether to update the replicated index or not |
Reindex all issues.
IndexException |
---|
Reindex indexes defined by the IssueIndexingParams
.
context | used to report progress back to the user or to the logs. Must not be null. |
---|---|
issueIndexingParams | indexes to reindex. |
Reindex all issues. If the useBackgroundReindexing option is set to true, then only the basic issue information will be reindexed, unless the reIndexComments or reIndexChangeHistory parameters are also set. This is considered the normal mode for background re-indexing and is sufficient to correct the index for changes in the system configuration, but not for changes to the indexing language. If useBackgroundReindexing is set to false, than everything is always reindexed.
context | used to report progress back to the user or to the logs. Must not be null |
---|---|
useBackgroundIndexing | whether to index in the background or not |
reIndexComments | Also reindex all the issue comments. Only relevant for background reindex operations. |
reIndexChangeHistory | Also reindex the issue change history. Only relevant for background reindex operations. |
updateReplicatedIndex | whether to update the replicated index or not |
Reindex everything, but don't stop the world Comments and change history will not be reindexed.
context | used to report progress back to the user or to the logs. Must not be null. |
---|
Reindex everything, but don't stop the world
context | used to report progress back to the user or to the logs. Must not be null. |
---|---|
reIndexComments | Also reindex all the issue comments. |
reIndexChangeHistory | Also reindex the issue change history. |
Reindexes a collection of comments.
comments | a collection of Comment |
---|---|
context | used to report progress back to the user or to the logs. Must not be null. |
updateReplicatedIndexStore | whether to update the replicated index or not |
IndexException |
---|
Reindexes a collection of comments.
comments | a collection of Comment |
---|
IndexException |
---|
Reindexes a collection of comments.
comments | a collection of Comment |
---|---|
context | used to report progress back to the user or to the logs. Must not be null. |
IndexException |
---|
Reindex a set of issues.
issueObjects | Set of Issue s to reindex. |
---|
IndexException |
---|
Reindex a set of issues.
issueObjects | Set of Issue s to reindex. |
---|---|
reIndexComments | whether to reindex the comments or not |
reIndexChangeHistory | whether to reindex changeHistory or not |
updateReplicatedIndexStore | whether to store index operations in the replicated index store |
IndexException |
---|
Reindex a set of issues.
issueObjects | Set of Issue s to reindex. |
---|---|
issueIndexingParams | Determines witch related objects should be indexed together with issues. |
updateReplicatedIndexStore | whether to store index operations in the replicated index store |
IndexException |
---|
Reindex a set of issues.
issueObjects | Set of Issue s to reindex. |
---|---|
issueIndexingParams | Determines witch related objects should be indexed together with issues. |
IndexException |
---|
Reindex a set of issues.
issueObjects | Set of Issue s to reindex. |
---|
IndexException |
---|
Reindex a set of issues (GenericValues). Use reIndexIssueObjects(Collection)
instead when possible.
issues | The Issue GenericValues to reindex. |
---|
IndexException |
---|
Reindex a list of issues, passing an optional event that will be set progress
issuesIterable | IssuesIterable |
---|---|
context | used to report progress back to the user or to the logs. Must not be null. |
IndexException |
---|
Reindex a list of issues, passing an optional event that will be set progress. This method can optionally also index the comments and change history.
issuesIterable | IssuesIterable |
---|---|
context | used to report progress back to the user or to the logs. Must not be null. |
reIndexComments | a boolean indicating whether to index issue comments |
reIndexChangeHistory | a boolean indicating whether to index issue change history |
IndexException |
---|
Reindex a list of issues, passing an optional event that will be set progress. This method can optionally also index the comments and change history.
issuesIterable | IssuesIterable |
---|---|
context | used to report progress back to the user or to the logs. Must not be null. |
issueIndexingParams | determines witch related objects should be indexed together with issue. |
IndexException |
---|
Reindex everything, but don't stop the world
context | used to report progress back to the user or to the logs. Must not be null. |
---|---|
issueIndexingParams | determines witch related objects should be indexed together with issue. |
Reindexes a collection of worklogs.
worklogs | a collection of Worklogs |
---|
IndexException |
---|
Reindexes a collection of worklogs.
worklogs | a collection of Worklogs |
---|---|
context | used to report progress back to the user or to the logs. Must not be null. |
updateReplicatedIndexStore | whether to update the replicated index or not |
IndexException |
---|
Reindexes a collection of worklogs.
worklogs | a collection of Worklogs |
---|---|
context | used to report progress back to the user or to the logs. Must not be null. |
IndexException |
---|
Release indexing on this thread. All queued index requests will be processed.
IndexException |
---|
Shuts down the indexing manager and closes its resources (if any).
This method takes a runnable that is run under the 'stop the world' reindex lock. It is used here in preference to a Guava function in order to avoid introducing more Guava into the API, which limits our ability to update the library. The runnable is executed in the current thread.
runnable | The runnable to be executed |
---|
IndexException |
---|