|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IssueIndexManager
Manages Lucene search indexes.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.jira.util.index.IndexLifecycleManager |
---|
IndexLifecycleManager.Composite |
Method Summary | |
---|---|
void |
deactivate(String filePath)
Deactivate a specific search index and remove its directory. |
void |
deIndex(org.ofbiz.core.entity.GenericValue issue)
Remove an issue from the search index. |
org.apache.lucene.search.IndexSearcher |
getCommentSearcher()
Get an IndexSearcher that can be used to search the comment index. |
Collection |
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. |
void |
reIndex(org.ofbiz.core.entity.GenericValue issue)
Reindex an issue (eg. |
void |
reIndex(Issue issue)
Reindex an issue (eg. |
long |
reIndexAll()
Reindex all issues. |
long |
reIndexIssueObjects(Collection issueObjects)
Reindex a set of issues. |
long |
reIndexIssues(Collection issues)
Reindex a set of issues (GenericValues). |
long |
reIndexIssues(IssuesIterable issuesIterable,
Context event)
Reindex a list of issues, passing an optional event that will be set progress |
Methods inherited from interface com.atlassian.jira.util.index.IndexLifecycleManager |
---|
activate, deactivate, getAllIndexPaths, isIndexingEnabled, optimize, reIndexAll, shutdown, size |
Method Detail |
---|
long reIndexAll() throws IndexException
IndexException
void reIndex(org.ofbiz.core.entity.GenericValue issue) throws IndexException
IndexException
long reIndexIssues(IssuesIterable issuesIterable, Context event) throws IndexException
issuesIterable
- context
- used to report progress back to the user or to the logs. Must not be null.
IndexException
void reIndex(Issue issue) throws IndexException
IndexException
void deIndex(org.ofbiz.core.entity.GenericValue issue) throws IndexException
IndexException
long reIndexIssues(Collection issues) throws IndexException
reIndexIssueObjects(Collection)
instead when possible.
issues
- The Issue GenericValue
s to reindex.
IndexException
long reIndexIssueObjects(Collection issueObjects) throws IndexException
issueObjects
- Set of Issue
s to reindex.
IndexException
String getPluginsRootPath()
Collection 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.
void deactivate(String filePath) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |