|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Manages Lucene search indexes.
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 issue)
Remove an issue from the search index. |
org.apache.lucene.store.Directory |
getCommentDirectory()
Get the 'comments' index subtree's directory. |
String |
getCommentPath()
Get path to the 'comments' index subtree. |
org.apache.lucene.store.Directory |
getIssueDirectory()
Get the 'issues' index subtree's directory. |
String |
getIssuePath()
Get path to the 'issues' index subtree. |
boolean |
isBusy()
If any indexing operations are taking place. |
void |
reIndex(org.ofbiz.core.entity.GenericValue issue)
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). |
Method Detail |
public long reIndexAll() throws IndexException
IndexException
public long reIndexAll(com.atlassian.johnson.event.Event event) throws IndexException
event
- Reindex Event
that the caller has set (see source in IndexAdminImpl.doActivate()
).
IndexException
public void reIndex(org.ofbiz.core.entity.GenericValue issue) throws IndexException
IndexException
public void deIndex(org.ofbiz.core.entity.GenericValue issue) throws IndexException
IndexException
public long reIndexIssues(Collection issues) throws IndexException
reIndexIssueObjects(Collection)
instead when
possible.
issues
- The Issue GenericValue
s to reindex.
IndexException
public long reIndexIssueObjects(Collection issueObjects) throws IndexException
issueObjects
- Set of Issue
s to reindex.
IndexException
public String getIssuePath()
public org.apache.lucene.store.Directory getIssueDirectory()
public String getCommentPath()
public org.apache.lucene.store.Directory getCommentDirectory()
public boolean isBusy()
public void deactivate() throws Exception
Exception
public long activate(String indexPath, com.atlassian.johnson.event.Event appEvent) throws Exception
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 void deactivate(String filePath) throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |