@PublicApi public interface IssueIndexManager extends IndexLifecycleManager
Modifier and Type | Field and Description |
---|---|
static org.apache.lucene.util.Version |
LUCENE_VERSION
Deprecated.
Use
LuceneVersion.get() instead. |
Modifier and Type | Method and Description |
---|---|
void |
deIndex(org.ofbiz.core.entity.GenericValue issue)
Deprecated.
Use
deIndex(com.atlassian.jira.issue.Issue) instead. Since v5.0. |
void |
deIndex(Issue issue)
Remove an issue from the search index.
|
void |
deIndexIssueObjects(Set<Issue> issuesToDelete,
boolean updateReplicatedIndexStore)
Remove a set of issues from the search index.
|
org.apache.lucene.analysis.Analyzer |
getAnalyzerForIndexing()
Returns an
Analyzer for indexing. |
org.apache.lucene.analysis.Analyzer |
getAnalyzerForSearching()
Returns an
Analyzer for searching. |
org.apache.lucene.search.IndexSearcher |
getChangeHistorySearcher()
Get an
IndexSearcher that can be used to search the change history index. |
org.apache.lucene.search.IndexSearcher |
getCommentSearcher()
Get an
IndexSearcher that can be used to search the comment index. |
Collection<String> |
getExistingPluginsPaths()
Returns a collection of Strings, each one representing the absolute path to the actual existing directory where a plugin keeps its
indexes.
|
org.apache.lucene.search.IndexSearcher |
getIssueSearcher()
Get an
IndexSearcher that can be used to search the issue index. |
String |
getPluginsRootPath()
Get the root path of the index directory for plugins.
|
org.apache.lucene.search.IndexSearcher |
getWorklogSearcher()
Get an
IndexSearcher that can be used to search the worklog index. |
void |
hold()
Temporarily suspend indexing on this thread.
|
boolean |
isHeld()
Return true if the index is held.
|
void |
reIndex(org.ofbiz.core.entity.GenericValue issue)
Deprecated.
Use
reIndex(com.atlassian.jira.issue.Issue) instead. Since v5.0. |
void |
reIndex(Issue issue)
Reindex an issue (eg.
|
void |
reIndex(Issue issue,
boolean reIndexComments,
boolean reIndexChangeHistory)
Deprecated.
since v6.4 use
reIndex(com.atlassian.jira.issue.Issue, IssueIndexingParams) instead |
void |
reIndex(Issue issue,
IssueIndexingParams issueIndexingParams)
Reindex an issue (eg.
|
long |
reIndexAll()
Reindex all issues.
|
long |
reIndexAll(Context context,
boolean useBackgroundReindexing,
boolean updateReplicatedIndexStore)
Reindex all issues.
|
long |
reIndexAll(Context context,
boolean useBackgroundReindexing,
boolean reIndexComments,
boolean reIndexChangeHistory,
boolean updateReplicatedIndexStore)
Deprecated.
|
long |
reIndexAll(Context context,
boolean useBackgroundReindexing,
IssueIndexingParams issueIndexingParams,
boolean updateReplicatedIndexStore)
Reindex all issues.
|
long |
reIndexComments(Collection<Comment> comments)
Reindexes a collection of comments.
|
long |
reIndexComments(Collection<Comment> comments,
Context context)
Reindexes a collection of comments.
|
long |
reIndexComments(Collection<Comment> comments,
Context context,
boolean updateReplicatedIndexStore)
Reindexes a collection of comments.
|
long |
reIndexIssueObjects(Collection<? extends Issue> issueObjects)
Reindex a set of issues.
|
long |
reIndexIssueObjects(Collection<? extends Issue> issueObjects,
boolean reIndexComments,
boolean reIndexChangeHistory)
Deprecated.
|
long |
reIndexIssueObjects(Collection<? extends Issue> issueObjects,
boolean reIndexComments,
boolean reIndexChangeHistory,
boolean updateReplicatedIndexStore)
Deprecated.
|
long |
reIndexIssueObjects(Collection<? extends Issue> issueObjects,
IssueIndexingParams issueIndexingParams)
Reindex a set of issues.
|
long |
reIndexIssueObjects(Collection<? extends Issue> issueObjects,
IssueIndexingParams issueIndexingParams,
boolean updateReplicatedIndexStore)
Reindex a set of issues.
|
long |
reIndexIssues(Collection<org.ofbiz.core.entity.GenericValue> issues)
Deprecated.
Use
reIndexIssueObjects(java.util.Collection) instead. Since v5.0. |
long |
reIndexIssues(IssuesIterable issuesIterable,
Context context)
Reindex a list of issues, passing an optional event that will be set progress
|
long |
reIndexIssues(IssuesIterable issuesIterable,
Context context,
boolean reIndexComments,
boolean reIndexChangeHistory)
|
long |
reIndexIssues(IssuesIterable issuesIterable,
Context context,
IssueIndexingParams issueIndexingParams)
Reindex a list of issues, passing an optional event that will be set progress.
|
long |
reIndexWorklogs(Collection<Worklog> worklogs)
Reindexes a collection of worklogs.
|
long |
reIndexWorklogs(Collection<Worklog> worklogs,
Context context)
Reindexes a collection of worklogs.
|
long |
reIndexWorklogs(Collection<Worklog> worklogs,
Context context,
boolean updateReplicatedIndexStore)
Reindexes a collection of worklogs.
|
long |
release()
Release indexing on this thread.
|
boolean |
withReindexLock(Runnable runnable)
Runs the given runnable under the 'stop the world' reindex lock.
|
activate, activate, deactivate, getAllIndexPaths, isIndexAvailable, isIndexConsistent, isIndexingEnabled, optimize, reIndexAll, reIndexAll, reIndexAllIssuesInBackground, reIndexAllIssuesInBackground, reIndexIssuesInBackground, shutdown, size
@Deprecated static final org.apache.lucene.util.Version LUCENE_VERSION
LuceneVersion.get()
instead.long reIndexAll() throws IndexException
IndexException
long reIndexAll(Context context, boolean useBackgroundReindexing, boolean updateReplicatedIndexStore) throws IndexException
context
- used to report progress back to the user or to the logs. Must not be nulluseBackgroundReindexing
- whether to index in the background or not. If the useBackgroundReindexing option is
set to true, then all related fields will not be reindexed.updateReplicatedIndexStore
- whether to update the replicated index or notIndexException
@Deprecated long reIndexAll(Context context, boolean useBackgroundReindexing, boolean reIndexComments, boolean reIndexChangeHistory, boolean updateReplicatedIndexStore) throws IndexException
reIndexAll(com.atlassian.jira.task.context.Context, boolean, IssueIndexingParams, boolean)
context
- used to report progress back to the user or to the logs. Must not be nulluseBackgroundReindexing
- whether to index in the background or notreIndexComments
- 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.updateReplicatedIndexStore
- whether to update the replicated index or notIndexException
long reIndexAll(Context context, boolean useBackgroundReindexing, IssueIndexingParams issueIndexingParams, boolean updateReplicatedIndexStore) throws IndexException
context
- used to report progress back to the user or to the logs. Must not be nulluseBackgroundReindexing
- whether to index in the background or notissueIndexingParams
- determines witch related objects should be indexed together with issues. Only relevant for background reindex operations.updateReplicatedIndexStore
- whether to update the replicated index or notIndexException
void reIndex(org.ofbiz.core.entity.GenericValue issue) throws IndexException
reIndex(com.atlassian.jira.issue.Issue)
instead. Since v5.0.IndexException
long reIndexIssues(IssuesIterable issuesIterable, Context context) throws IndexException
issuesIterable
- IssuesIterablecontext
- used to report progress back to the user or to the logs. Must not be null.IndexException
@Deprecated long reIndexIssues(IssuesIterable issuesIterable, Context context, boolean reIndexComments, boolean reIndexChangeHistory) throws IndexException
reIndexIssues(com.atlassian.jira.issue.util.IssuesIterable, com.atlassian.jira.task.context.Context, IssueIndexingParams)
issuesIterable
- IssuesIterablecontext
- used to report progress back to the user or to the logs. Must not be null.reIndexComments
- a boolean indicating whether to index issue commentsreIndexChangeHistory
- a boolean indicating whether to index issue change historyIndexException
long reIndexIssues(IssuesIterable issuesIterable, Context context, IssueIndexingParams issueIndexingParams) throws IndexException
issuesIterable
- IssuesIterablecontext
- 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
void reIndex(Issue issue) throws IndexException
IndexException
@Deprecated void reIndex(Issue issue, boolean reIndexComments, boolean reIndexChangeHistory) throws IndexException
reIndex(com.atlassian.jira.issue.Issue, IssueIndexingParams)
insteadIndexException
void reIndex(Issue issue, IssueIndexingParams issueIndexingParams) throws IndexException
IndexException
long reIndexComments(Collection<Comment> comments) throws IndexException
comments
- a collection of CommentIndexException
long reIndexComments(Collection<Comment> comments, Context context) throws IndexException
comments
- a collection of Commentcontext
- used to report progress back to the user or to the logs. Must not be null.IndexException
long reIndexComments(Collection<Comment> comments, Context context, boolean updateReplicatedIndexStore) throws IndexException
comments
- a collection of Commentcontext
- used to report progress back to the user or to the logs. Must not be null.updateReplicatedIndexStore
- whether to update the replicated index or notIndexException
long reIndexWorklogs(Collection<Worklog> worklogs) throws IndexException
worklogs
- a collection of WorklogsIndexException
long reIndexWorklogs(Collection<Worklog> worklogs, Context context) throws IndexException
worklogs
- a collection of Worklogscontext
- used to report progress back to the user or to the logs. Must not be null.IndexException
long reIndexWorklogs(Collection<Worklog> worklogs, Context context, boolean updateReplicatedIndexStore) throws IndexException
worklogs
- a collection of Worklogscontext
- used to report progress back to the user or to the logs. Must not be null.updateReplicatedIndexStore
- whether to update the replicated index or notIndexException
void deIndex(org.ofbiz.core.entity.GenericValue issue) throws IndexException
deIndex(com.atlassian.jira.issue.Issue)
instead. Since v5.0.IndexException
void deIndex(Issue issue) throws IndexException
IndexException
void deIndexIssueObjects(Set<Issue> issuesToDelete, boolean updateReplicatedIndexStore) throws IndexException
IndexException
long reIndexIssues(Collection<org.ofbiz.core.entity.GenericValue> issues) throws IndexException
reIndexIssueObjects(java.util.Collection)
instead. Since v5.0.reIndexIssueObjects(Collection)
instead when possible.issues
- The Issue GenericValue
s to reindex.IndexException
long reIndexIssueObjects(Collection<? extends Issue> issueObjects) throws IndexException
issueObjects
- Set of Issue
s to reindex.IndexException
@Deprecated long reIndexIssueObjects(Collection<? extends Issue> issueObjects, boolean reIndexComments, boolean reIndexChangeHistory) throws IndexException
reIndexIssueObjects(java.util.Collection, IssueIndexingParams)
issueObjects
- Set of Issue
s to reindex.IndexException
@Deprecated long reIndexIssueObjects(Collection<? extends Issue> issueObjects, boolean reIndexComments, boolean reIndexChangeHistory, boolean updateReplicatedIndexStore) throws IndexException
reIndexIssueObjects(java.util.Collection, IssueIndexingParams, boolean)
issueObjects
- Set of Issue
s to reindex.reIndexComments
- whether to reindex the comments or notreIndexChangeHistory
- whether to reindex changeHistory or notupdateReplicatedIndexStore
- whether to store index operations in the replicated index storeIndexException
long reIndexIssueObjects(Collection<? extends Issue> issueObjects, IssueIndexingParams issueIndexingParams) throws IndexException
issueObjects
- Set of Issue
s to reindex.issueIndexingParams
- Determines witch related objects should be indexed together with issues.IndexException
long reIndexIssueObjects(Collection<? extends Issue> issueObjects, IssueIndexingParams issueIndexingParams, boolean updateReplicatedIndexStore) throws IndexException
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 storeIndexException
void hold()
boolean isHeld()
long release() throws IndexException
IndexException
- if an error occursString getPluginsRootPath()
Collection<String> getExistingPluginsPaths()
getPluginsRootPath()
.
If a plugin index root path does not exist, or is empty (no sub-directopries exist) then an empty collection will be returned.
org.apache.lucene.search.IndexSearcher getIssueSearcher()
IndexSearcher
that can be used to search the issue index.
Note: This is an unmanaged IndexSearcher. You MUST call IndexSearcher.close()
when you are done with it. Alternatively you should
really call SearchProviderFactory#getSearcher(String))
passing in SearchProviderFactory.ISSUE_INDEX
as it is a managed searcher
and all the closing semantics are handled for you.org.apache.lucene.search.IndexSearcher getCommentSearcher()
IndexSearcher
that can be used to search the comment index.
Note: This is an unmanaged IndexSearcher. You MUST call IndexSearcher.close()
when you are done with it. Alternatively you should
really call SearchProviderFactory#getSearcher(String))
passing in SearchProviderFactory.COMMENT_INDEX
as it is a managed
searcher and all the closing semantics are handled for you.org.apache.lucene.search.IndexSearcher getChangeHistorySearcher()
IndexSearcher
that can be used to search the change history index.
Note: This is an unmanaged IndexSearcher. You MUST call IndexSearcher.close()
when you are done with it. Alternatively you should
really call SearchProviderFactory#getSearcher(String))
passing in SearchProviderFactory.CHANGE_HISTORY_INDEX
as it is a managed
searcher and all the closing semantics are handled for you.org.apache.lucene.search.IndexSearcher getWorklogSearcher()
IndexSearcher
that can be used to search the worklog index.
Note: This is an unmanaged IndexSearcher. You MUST call IndexSearcher.close()
when you are done with it. Alternatively you should
really call SearchProviderFactory#getSearcher(String))
passing in SearchProviderFactory.WORKLOG_INDEX
as it is a managed
searcher and all the closing semantics are handled for you.org.apache.lucene.analysis.Analyzer getAnalyzerForSearching()
Analyzer
for searching.org.apache.lucene.analysis.Analyzer getAnalyzerForIndexing()
Analyzer
for indexing.boolean withReindexLock(Runnable runnable)
runnable
- The runnable to be executedCopyright © 2002-2015 Atlassian. All Rights Reserved.