public interface IssueIndexManager extends IndexLifecycleManager, IssueIndexingService
| Modifier and Type | Method and Description |
|---|---|
void |
deIndex(org.ofbiz.core.entity.GenericValue issue)
Deprecated.
Since v5.0 use
IssueIndexingService.deIndex(Issue) instead. Since v7.0 use IssueIndexingService.deIndex(Issue) instead. |
org.apache.lucene.analysis.Analyzer |
getAnalyzerForIndexing()
Returns an
Analyzer for indexing. |
org.apache.lucene.analysis.Analyzer |
getAnalyzerForSearching()
Returns an
Analyzer for searching. |
ManagedIndexSearcher |
getChangeHistorySearcher()
Get an
IndexSearcher that can be used to search the change history index. |
ManagedIndexSearcher |
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.
|
ManagedIndexSearcher |
getIssueSearcher()
Get an
IndexSearcher that can be used to search the issue index. |
java.time.Instant |
getLatestIndexDate()
Gets the latest index date based on the most recent issue updated date.
|
String |
getPluginsRootPath()
Get the root path of the index directory for plugins.
|
ManagedIndexSearcher |
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.
Since v5.0. Use
reIndex(Issue) instead. Since v7.0, use IssueIndexingService.reIndex(Issue) instead. |
void |
reIndex(Issue issue)
Deprecated.
Call this as
IssueIndexingService.reIndex(Issue) instead. Since v7.0. |
void |
reIndex(Issue issue,
boolean reIndexComments,
boolean reIndexChangeHistory)
Deprecated.
Since v6.4, use
reIndex(Issue, IssueIndexingParams). Since v7.0, use IssueIndexingService.reIndex(Issue, IssueIndexingParams). |
void |
reIndex(Issue issue,
IssueIndexingParams issueIndexingParams)
Deprecated.
Call this as
IssueIndexingService.reIndex(Issue, IssueIndexingParams) instead. Since v7.0. |
long |
reIndexAll()
Deprecated.
Call this as
IssueIndexingService.reIndexAll() instead. Since v7.0. |
long |
reIndexAll(Context context,
boolean useBackgroundReindexing,
boolean notifyCluster)
Deprecated.
Call this as
IssueIndexingService.reIndexAll(Context, boolean, boolean) instead. Since v7.0. |
long |
reIndexAll(Context context,
boolean useBackgroundReindexing,
boolean reIndexComments,
boolean reIndexChangeHistory,
boolean notifyCluster)
Deprecated.
since v6.4 use
reIndexAll(Context, boolean, IssueIndexingParams, boolean) instead. Since
v7.0 use IssueIndexingService.reIndexAll(Context, boolean, IssueIndexingParams, boolean) instead. |
long |
reIndexAll(Context context,
boolean useBackgroundReindexing,
IssueIndexingParams issueIndexingParams,
boolean notifyCluster)
Deprecated.
Call this as
IssueIndexingService.reIndexAll(Context, boolean, IssueIndexingParams, boolean)
instead. Since v7.0. |
long |
reIndexComments(Collection<Comment> comments)
Deprecated.
Call this as
IssueIndexingService.reIndexComments(Collection) instead. Since v7.0. |
long |
reIndexComments(Collection<Comment> comments,
Context context)
Deprecated.
Call this as
IssueIndexingService.reIndexComments(Collection, Context) instead. Since v7.0. |
long |
reIndexComments(Collection<Comment> comments,
Context context,
boolean shouldReplicate)
Deprecated.
Call this as
IssueIndexingService.reIndexComments(Collection, Context, boolean) instead.
Since v7.0. |
long |
reIndexIssueObjects(Collection<? extends Issue> issueObjects)
Deprecated.
Call this as
IssueIndexingService.reIndexIssueObjects(Collection) instead. Since v7.0. |
long |
reIndexIssueObjects(Collection<? extends Issue> issueObjects,
boolean reIndexComments,
boolean reIndexChangeHistory)
Deprecated.
Since v6.4, use
reIndexIssueObjects(Collection, IssueIndexingParams). Since v7.0, use
IssueIndexingService.reIndexIssueObjects(Collection, IssueIndexingParams). |
long |
reIndexIssueObjects(Collection<? extends Issue> issueObjects,
boolean reIndexComments,
boolean reIndexChangeHistory,
boolean shouldReplicate)
Deprecated.
|
long |
reIndexIssueObjects(Collection<? extends Issue> issueObjects,
IssueIndexingParams issueIndexingParams)
Deprecated.
Call this as
IssueIndexingService.reIndexIssueObjects(Collection, IssueIndexingParams)
instead. Since v7.0. |
long |
reIndexIssueObjects(Collection<? extends Issue> issueObjects,
IssueIndexingParams issueIndexingParams,
boolean shouldReplicate)
Deprecated.
Call this as
IssueIndexingService.reIndexIssueObjects(Collection, IssueIndexingParams,
boolean) instead. Since v7.0. |
long |
reIndexIssues(Collection<org.ofbiz.core.entity.GenericValue> issues)
Deprecated.
Since v5.0, use
reIndexIssueObjects(Collection) instead. Since v7.0, use
IssueIndexingService.reIndexIssueObjects(Collection) instead. |
long |
reIndexIssues(IssuesIterable issuesIterable,
Context context)
Deprecated.
Call this as
IssueIndexingService.reIndexIssues(IssuesIterable, Context) instead. Since v7.0. |
long |
reIndexIssues(IssuesIterable issuesIterable,
Context context,
boolean reIndexComments,
boolean reIndexChangeHistory)
Deprecated.
Since v6.4, use
reIndexIssues(IssuesIterable, Context, IssueIndexingParams). Since v7.0,
use IssueIndexingService.reIndexIssues(IssuesIterable, Context, IssueIndexingParams). |
long |
reIndexIssues(IssuesIterable issuesIterable,
Context context,
IssueIndexingParams issueIndexingParams)
Deprecated.
Call this as
IssueIndexingService.reIndexIssues(IssuesIterable, Context, IssueIndexingParams)
instead. Since v7.0. |
long |
reIndexWorklogs(Collection<Worklog> worklogs)
Deprecated.
Call this as
IssueIndexingService.reIndexWorklogs(Collection) instead. Since v7.0. |
long |
reIndexWorklogs(Collection<Worklog> worklogs,
Context context)
Deprecated.
Call this as
IssueIndexingService.reIndexWorklogs(Collection, Context) instead. Since v7.0. |
long |
reIndexWorklogs(Collection<Worklog> worklogs,
Context context,
boolean shouldReplicate)
Deprecated.
Call this as
IssueIndexingService.reIndexWorklogs(Collection, Context, boolean)
instead. Since v7.0. |
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, optimize, reIndexAll, reIndexAll, reIndexAllIssuesInBackground, reIndexIssuesInBackground, shutdown, sizedeIndex, deIndex, deIndex, deIndexComments, deIndexIssueObjects, deIndexIssueObjectsById, deIndexWorklogs, reIndexIssuesvoid 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.
ManagedIndexSearcher getIssueSearcher()
IndexSearcher that can be used to search the issue index.ManagedIndexSearcher getCommentSearcher()
IndexSearcher that can be used to search the comment index.ManagedIndexSearcher getChangeHistorySearcher()
IndexSearcher that can be used to search the change history index.ManagedIndexSearcher getWorklogSearcher()
IndexSearcher that can be used to search the worklog index.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 executed@Deprecated long reIndexAll() throws IndexException
IssueIndexingService.reIndexAll() instead. Since v7.0.reIndexAll in interface IssueIndexingServiceIndexException@Deprecated long reIndexAll(Context context, boolean useBackgroundReindexing, boolean notifyCluster) throws IndexException
IssueIndexingService.reIndexAll(Context, boolean, boolean) instead. Since v7.0.reIndexAll in interface IssueIndexingServicecontext - 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.notifyCluster - whether or not to notify the cluster about reindexing allIndexException@Deprecated long reIndexAll(Context context, boolean useBackgroundReindexing, IssueIndexingParams issueIndexingParams, boolean notifyCluster) throws IndexException
IssueIndexingService.reIndexAll(Context, boolean, IssueIndexingParams, boolean)
instead. Since v7.0.reIndexAll in interface IssueIndexingServicecontext - 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.notifyCluster - whether or not to notify the cluster about reindexing allIndexException@Deprecated long reIndexIssues(IssuesIterable issuesIterable, Context context) throws IndexException
IssueIndexingService.reIndexIssues(IssuesIterable, Context) instead. Since v7.0.reIndexIssues in interface IssueIndexingServiceissuesIterable - 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, IssueIndexingParams issueIndexingParams) throws IndexException
IssueIndexingService.reIndexIssues(IssuesIterable, Context, IssueIndexingParams)
instead. Since v7.0.reIndexIssues in interface IssueIndexingServiceissuesIterable - 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@Deprecated void reIndex(Issue issue) throws IndexException
IssueIndexingService.reIndex(Issue) instead. Since v7.0.reIndex in interface IssueIndexingServiceIndexException@Deprecated void reIndex(Issue issue, IssueIndexingParams issueIndexingParams) throws IndexException
IssueIndexingService.reIndex(Issue, IssueIndexingParams) instead. Since v7.0.reIndex in interface IssueIndexingServiceIndexException@Deprecated long reIndexComments(Collection<Comment> comments) throws IndexException
IssueIndexingService.reIndexComments(Collection) instead. Since v7.0.reIndexComments in interface IssueIndexingServicecomments - a collection of CommentIndexException@Deprecated long reIndexComments(Collection<Comment> comments, Context context) throws IndexException
IssueIndexingService.reIndexComments(Collection, Context) instead. Since v7.0.reIndexComments in interface IssueIndexingServicecomments - a collection of Commentcontext - used to report progress back to the user or to the logs. Must not be null.IndexException@Deprecated long reIndexComments(Collection<Comment> comments, Context context, boolean shouldReplicate) throws IndexException
IssueIndexingService.reIndexComments(Collection, Context, boolean) instead.
Since v7.0.reIndexComments in interface IssueIndexingServicecomments - a collection of Commentcontext - used to report progress back to the user or to the logs. Must not be null.shouldReplicate - whether or not the index changes should be replicated to the other nodes in the cluster.IndexException@Deprecated long reIndexWorklogs(Collection<Worklog> worklogs) throws IndexException
IssueIndexingService.reIndexWorklogs(Collection) instead. Since v7.0.reIndexWorklogs in interface IssueIndexingServiceworklogs - a collection of WorklogsIndexException@Deprecated long reIndexWorklogs(Collection<Worklog> worklogs, Context context) throws IndexException
IssueIndexingService.reIndexWorklogs(Collection, Context) instead. Since v7.0.reIndexWorklogs in interface IssueIndexingServiceworklogs - a collection of Worklogscontext - used to report progress back to the user or to the logs. Must not be null.IndexException@Deprecated long reIndexWorklogs(Collection<Worklog> worklogs, Context context, boolean shouldReplicate) throws IndexException
IssueIndexingService.reIndexWorklogs(Collection, Context, boolean)
instead. Since v7.0.reIndexWorklogs in interface IssueIndexingServiceworklogs - a collection of Worklogscontext - used to report progress back to the user or to the logs. Must not be null.shouldReplicate - whether or not the index changes should be replicated to the other nodes in the cluster.IndexException@Deprecated long reIndexIssueObjects(Collection<? extends Issue> issueObjects) throws IndexException
IssueIndexingService.reIndexIssueObjects(Collection) instead. Since v7.0.reIndexIssueObjects in interface IssueIndexingServiceissueObjects - Set of Issues to reindex.IndexException@Deprecated long reIndexIssueObjects(Collection<? extends Issue> issueObjects, IssueIndexingParams issueIndexingParams) throws IndexException
IssueIndexingService.reIndexIssueObjects(Collection, IssueIndexingParams)
instead. Since v7.0.reIndexIssueObjects in interface IssueIndexingServiceissueObjects - Set of Issues to reindex.issueIndexingParams - Determines witch related objects should be indexed together with issues.IndexException@Deprecated long reIndexIssueObjects(Collection<? extends Issue> issueObjects, IssueIndexingParams issueIndexingParams, boolean shouldReplicate) throws IndexException
IssueIndexingService.reIndexIssueObjects(Collection, IssueIndexingParams,
boolean) instead. Since v7.0.reIndexIssueObjects in interface IssueIndexingServiceissueObjects - Set of Issues to reindex.issueIndexingParams - Determines witch related objects should be indexed together with issues.shouldReplicate - whether or not the index changes should be replicated to the other nodes in the cluster.IndexException@Deprecated long reIndexAll(Context context, boolean useBackgroundReindexing, boolean reIndexComments, boolean reIndexChangeHistory, boolean notifyCluster) throws IndexException
reIndexAll(Context, boolean, IssueIndexingParams, boolean) instead. Since
v7.0 use IssueIndexingService.reIndexAll(Context, boolean, IssueIndexingParams, boolean) instead.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.notifyCluster - whether or not to notify the cluster about reindexing allIndexException@Deprecated void reIndex(org.ofbiz.core.entity.GenericValue issue) throws IndexException
reIndex(Issue) instead. Since v7.0, use IssueIndexingService.reIndex(Issue) instead.IndexException@Deprecated long reIndexIssues(IssuesIterable issuesIterable, Context context, boolean reIndexComments, boolean reIndexChangeHistory) throws IndexException
reIndexIssues(IssuesIterable, Context, IssueIndexingParams). Since v7.0,
use IssueIndexingService.reIndexIssues(IssuesIterable, 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@Deprecated void reIndex(Issue issue, boolean reIndexComments, boolean reIndexChangeHistory) throws IndexException
reIndex(Issue, IssueIndexingParams). Since v7.0, use IssueIndexingService.reIndex(Issue, IssueIndexingParams).IndexException@Deprecated void deIndex(org.ofbiz.core.entity.GenericValue issue) throws IndexException
IssueIndexingService.deIndex(Issue) instead. Since v7.0 use IssueIndexingService.deIndex(Issue) instead.IndexException@Deprecated long reIndexIssues(Collection<org.ofbiz.core.entity.GenericValue> issues) throws IndexException
reIndexIssueObjects(Collection) instead. Since v7.0, use
IssueIndexingService.reIndexIssueObjects(Collection) instead.reIndexIssueObjects(Collection) instead when possible.issues - The Issue GenericValues to reindex.IndexException@Deprecated long reIndexIssueObjects(Collection<? extends Issue> issueObjects, boolean reIndexComments, boolean reIndexChangeHistory) throws IndexException
reIndexIssueObjects(Collection, IssueIndexingParams). Since v7.0, use
IssueIndexingService.reIndexIssueObjects(Collection, IssueIndexingParams).issueObjects - Set of Issues to reindex.IndexException@Deprecated long reIndexIssueObjects(Collection<? extends Issue> issueObjects, boolean reIndexComments, boolean reIndexChangeHistory, boolean shouldReplicate) throws IndexException
reIndexIssueObjects(Collection, IssueIndexingParams, boolean). Since v7.0,
use IssueIndexingService.reIndexIssueObjects(Collection, IssueIndexingParams, boolean).issueObjects - Set of Issues to reindex.reIndexComments - whether to reindex the comments or notreIndexChangeHistory - whether to reindex changeHistory or notshouldReplicate - whether or not the index changes should be replicated to the other nodes in the cluster.IndexException@Nullable java.time.Instant getLatestIndexDate()
Copyright © 2002-2024 Atlassian. All Rights Reserved.