com.atlassian.jira.issue.index
Interface IssueIndexer

All Known Implementing Classes:
DefaultIssueIndexer, MockIssueIndexer

public interface IssueIndexer


Nested Class Summary
static class IssueIndexer.Analyzers
           
 
Method Summary
 Index.Result deindexIssues(EnclosedIterable<Issue> issues, Context context)
          Delete any existing documents for the supplied issues.
 void deleteIndexes()
           
 org.apache.lucene.search.IndexSearcher getChangeHistorySearcher()
           
 org.apache.lucene.search.IndexSearcher getCommentSearcher()
           
 List<String> getIndexPaths()
           
 String getIndexRootPath()
           
 org.apache.lucene.search.IndexSearcher getIssueSearcher()
           
 Index.Result indexIssues(EnclosedIterable<Issue> issues, Context context)
          Add documents for the supplied issues.
 Index.Result indexIssuesBatchMode(EnclosedIterable<Issue> issues, Context context)
          Index the given issues, use whatever is in your arsenal to do it as FAST as possible.
 Index.Result optimize()
           
 Index.Result reindexIssues(EnclosedIterable<Issue> issues, Context context)
          Re-index the given issues, delete any existing documents and add new ones.
 void shutdown()
           
 

Method Detail

indexIssues

Index.Result indexIssues(@NotNull
                         EnclosedIterable<Issue> issues,
                         @NotNull
                         Context context)
Add documents for the supplied issues.

Parameters:
issues - An iterable of issues to index.
context - for showing the user the current status.

deindexIssues

Index.Result deindexIssues(@NotNull
                           EnclosedIterable<Issue> issues,
                           @NotNull
                           Context context)
Delete any existing documents for the supplied issues.

Parameters:
issues - An iterable of issues to index.
context - for showing the user the current status.

reindexIssues

Index.Result reindexIssues(@NotNull
                           EnclosedIterable<Issue> issues,
                           @NotNull
                           Context context)
Re-index the given issues, delete any existing documents and add new ones.

Parameters:
issues - An iterable of issues to index.
context - for showing the user the current status.

indexIssuesBatchMode

Index.Result indexIssuesBatchMode(@NotNull
                                  EnclosedIterable<Issue> issues,
                                  @NotNull
                                  Context context)
Index the given issues, use whatever is in your arsenal to do it as FAST as possible.

Parameters:
issues - An iterable of issues to index.
context - for showing the user the current status.

optimize

Index.Result optimize()

deleteIndexes

void deleteIndexes()

shutdown

void shutdown()

getIssueSearcher

org.apache.lucene.search.IndexSearcher getIssueSearcher()

getCommentSearcher

org.apache.lucene.search.IndexSearcher getCommentSearcher()

getChangeHistorySearcher

org.apache.lucene.search.IndexSearcher getChangeHistorySearcher()

getIndexPaths

List<String> getIndexPaths()

getIndexRootPath

String getIndexRootPath()


Copyright © 2002-2012 Atlassian. All Rights Reserved.