com.atlassian.jira.util.index.IndexLifecycleManager |
![]() |
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
Manage an index lifecycle.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Activates search indexes.
| |||||||||||
Activates search indexes.
| |||||||||||
De-activates indexing (as happens from the admin page) and removes index directories.
| |||||||||||
Whether this index is available.
| |||||||||||
This method is deprecated.
since v6.3.3 Use
isIndexAvailable()
| |||||||||||
Optimize the underlying indexes.
| |||||||||||
This method is deprecated.
Use
reIndexAll(com.atlassian.jira.task.context.Context, com.atlassian.jira.issue.index.IssueIndexingParams) instead. Since v6.4.
| |||||||||||
Reindex indexes defined by the
IssueIndexingParams . | |||||||||||
Reindex everything, but don't stop the world
Comments and change history will not be reindexed.
| |||||||||||
This method is deprecated.
since v6.4 use
reIndexIssuesInBackground(com.atlassian.jira.task.context.Context, com.atlassian.jira.issue.index.IssueIndexingParams)
| |||||||||||
Reindex everything, but don't stop the world
| |||||||||||
Shuts down the indexing manager and closes its resources (if any).
| |||||||||||
[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. |
De-activates indexing (as happens from the admin page) and removes index directories.
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.
false
.
This method is deprecated.
since v6.3.3 Use isIndexAvailable()
Optimize the underlying indexes. Make the subsequent searching more efficient.
IndexException | if the indexes are seriously in trouble |
---|
This method is deprecated.
Use reIndexAll(com.atlassian.jira.task.context.Context, com.atlassian.jira.issue.index.IssueIndexingParams)
instead. Since v6.4.
Reindex everything.
context | used to report progress back to the user or to the logs. Must not be null. |
---|
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 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. |
---|
This method is deprecated.
since v6.4 use reIndexIssuesInBackground(com.atlassian.jira.task.context.Context, com.atlassian.jira.issue.index.IssueIndexingParams)
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. |
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. |
Shuts down the indexing manager and closes its resources (if any).