|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.index.DefaultIndexManager
Field Summary | |
static org.apache.lucene.analysis.Analyzer |
ANALYZER_FOR_INDEXING
|
static org.apache.lucene.analysis.Analyzer |
ANALYZER_FOR_SEARCHING
|
static String |
COMMENTS_SUBDIR
|
static String |
ISSUES_SUBDIR
|
static String |
PLUGINS_SUBDIR
|
Constructor Summary | |
DefaultIndexManager()
|
|
DefaultIndexManager(ApplicationProperties applicationProperties,
IssueIndexer issueIndexer)
|
Method Summary | |
long |
activate(String indexPath,
com.atlassian.johnson.event.Event appEvent)
Activates search indexes. |
void |
deactivate()
Deactivates indexing (as happens from the admin page) and removes index directories. |
void |
deactivate(String filePath)
Deactivate a specific search index and remove its directory. |
void |
deIndex(org.ofbiz.core.entity.GenericValue entity)
Remove an issue from the search index. |
org.apache.lucene.store.Directory |
getCommentDirectory()
Get the 'comments' index subtree's directory. |
String |
getCommentPath()
The specific path of the comments index |
protected String |
getFilePath()
Return the path beneath which the different index directories are stored |
protected org.apache.lucene.index.IndexReader |
getIndexReader(String path)
Obtain an IndexReader |
protected org.apache.lucene.index.IndexWriter |
getIndexWriter(String path,
boolean create)
Obtain an IndexWriter for and optionally create. |
org.apache.lucene.store.Directory |
getIssueDirectory()
Get the 'issues' index subtree's directory. |
String |
getIssuePath()
The specific path of the issue index |
boolean |
isBusy()
If any indexing operations are taking place. |
void |
reIndex(org.ofbiz.core.entity.GenericValue entity)
Reindex an issue (eg. |
long |
reIndexAll()
Reindex all issues. |
long |
reIndexAll(com.atlassian.johnson.event.Event event)
Reindex all issues. |
long |
reIndexIssueObjects(Collection issueObjects)
Reindex a set of issues. |
long |
reIndexIssues(Collection issues)
Reindex a set of issues (GenericValues). |
protected long |
reIndexIssues(Collection issues,
boolean recreateIndex,
boolean deIndexIssues,
boolean optimiseIfNeeded,
com.atlassian.johnson.event.Event event)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final org.apache.lucene.analysis.Analyzer ANALYZER_FOR_SEARCHING
public static final org.apache.lucene.analysis.Analyzer ANALYZER_FOR_INDEXING
public static final String COMMENTS_SUBDIR
public static final String ISSUES_SUBDIR
public static final String PLUGINS_SUBDIR
Constructor Detail |
public DefaultIndexManager()
public DefaultIndexManager(ApplicationProperties applicationProperties, IssueIndexer issueIndexer)
Method Detail |
public boolean isBusy()
IssueIndexManager
isBusy
in interface IssueIndexManager
public void deactivate(String filePath) throws Exception
IssueIndexManager
deactivate
in interface IssueIndexManager
Exception
public void deactivate() throws Exception
IssueIndexManager
deactivate
in interface IssueIndexManager
Exception
public long activate(String indexPath, com.atlassian.johnson.event.Event appEvent) throws Exception
IssueIndexManager
activate
in interface IssueIndexManager
indexPath
- Root path to the search index.appEvent
- Optional reindex Event
that the caller has set (see source in IndexAdminImpl.doActivate()
) or null.
Exception
public long reIndexAll() throws IndexException
IssueIndexManager
reIndexAll
in interface IssueIndexManager
IndexException
public long reIndexAll(com.atlassian.johnson.event.Event event) throws IndexException
IssueIndexManager
reIndexAll
in interface IssueIndexManager
event
- Reindex Event
that the caller has set (see source in IndexAdminImpl.doActivate()
).
IndexException
public long reIndexIssues(Collection issues) throws IndexException
IssueIndexManager
IssueIndexManager.reIndexIssueObjects(Collection)
instead when
possible.
reIndexIssues
in interface IssueIndexManager
issues
- The Issue GenericValue
s to reindex.
IndexException
public long reIndexIssueObjects(Collection issueObjects) throws IndexException
IssueIndexManager
reIndexIssueObjects
in interface IssueIndexManager
issueObjects
- Set of Issue
s to reindex.
IndexException
protected long reIndexIssues(Collection issues, boolean recreateIndex, boolean deIndexIssues, boolean optimiseIfNeeded, com.atlassian.johnson.event.Event event) throws IndexException
IndexException
public void reIndex(org.ofbiz.core.entity.GenericValue entity) throws IndexException
IssueIndexManager
reIndex
in interface IssueIndexManager
IndexException
public void deIndex(org.ofbiz.core.entity.GenericValue entity) throws IndexException
IssueIndexManager
deIndex
in interface IssueIndexManager
IndexException
public String getIssuePath()
getIssuePath
in interface IssueIndexManager
public String getCommentPath()
getCommentPath
in interface IssueIndexManager
public org.apache.lucene.store.Directory getIssueDirectory()
IssueIndexManager
getIssueDirectory
in interface IssueIndexManager
public org.apache.lucene.store.Directory getCommentDirectory()
IssueIndexManager
getCommentDirectory
in interface IssueIndexManager
protected String getFilePath()
protected org.apache.lucene.index.IndexReader getIndexReader(String path) throws IndexException
IndexException
protected org.apache.lucene.index.IndexWriter getIndexWriter(String path, boolean create) throws IndexException
IndexException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |