com.atlassian.jira.issue.index
Class DefaultIssueIndexer
java.lang.Object
com.atlassian.jira.issue.index.DefaultIssueIndexer
- All Implemented Interfaces:
- IssueIndexer
public class DefaultIssueIndexer
- extends Object
- implements IssueIndexer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultIssueIndexer
public DefaultIssueIndexer(@NotNull
IndexDirectoryFactory indexDirectoryFactory,
@NotNull
DefaultIssueIndexer.CommentRetriever commentRetriever,
@NotNull
DefaultIssueIndexer.ChangeHistoryRetriever changeHistoryRetriever)
deindexIssues
public Index.Result deindexIssues(@NotNull
EnclosedIterable<Issue> issues,
@NotNull
Context context)
- Description copied from interface:
IssueIndexer
- Delete any existing documents for the supplied issues.
- Specified by:
deindexIssues in interface IssueIndexer
- Parameters:
issues - An iterable of issues to index.context - for showing the user the current status.
indexIssues
public Index.Result indexIssues(@NotNull
EnclosedIterable<Issue> issues,
@NotNull
Context context)
- Description copied from interface:
IssueIndexer
- Add documents for the supplied issues.
- Specified by:
indexIssues in interface IssueIndexer
- Parameters:
issues - An iterable of issues to index.context - for showing the user the current status.
indexIssuesBatchMode
public Index.Result indexIssuesBatchMode(@NotNull
EnclosedIterable<Issue> issues,
@NotNull
Context context)
- No other index operations should be called while this method is being called
- Specified by:
indexIssuesBatchMode in interface IssueIndexer
- Parameters:
issues - An iterable of issues to index.context - for showing the user the current status.
reindexIssues
public Index.Result reindexIssues(@NotNull
EnclosedIterable<Issue> issues,
@NotNull
Context context)
- Description copied from interface:
IssueIndexer
- Re-index the given issues, delete any existing documents and add new ones.
- Specified by:
reindexIssues in interface IssueIndexer
- Parameters:
issues - An iterable of issues to index.context - for showing the user the current status.
deleteIndexes
public void deleteIndexes()
- Specified by:
deleteIndexes in interface IssueIndexer
getCommentSearcher
public org.apache.lucene.search.IndexSearcher getCommentSearcher()
- Specified by:
getCommentSearcher in interface IssueIndexer
getIssueSearcher
public org.apache.lucene.search.IndexSearcher getIssueSearcher()
- Specified by:
getIssueSearcher in interface IssueIndexer
getChangeHistorySearcher
public org.apache.lucene.search.IndexSearcher getChangeHistorySearcher()
- Specified by:
getChangeHistorySearcher in interface IssueIndexer
optimize
public Index.Result optimize()
- Specified by:
optimize in interface IssueIndexer
shutdown
public void shutdown()
- Specified by:
shutdown in interface IssueIndexer
getIndexPaths
public List<String> getIndexPaths()
- Specified by:
getIndexPaths in interface IssueIndexer
getIndexRootPath
public String getIndexRootPath()
- Specified by:
getIndexRootPath in interface IssueIndexer
Copyright © 2002-2012 Atlassian. All Rights Reserved.