com.atlassian.jira.issue.index
Interface IssueIndexer

All Known Implementing Classes:
DefaultIssueIndexer

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 getCommentSearcher()
           
 java.util.List<java.lang.String> getIndexPaths()
           
 java.lang.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()

getIndexPaths

java.util.List<java.lang.String> getIndexPaths()

getIndexRootPath

java.lang.String getIndexRootPath()


Copyright © 2002-2010 Atlassian. All Rights Reserved.