public class

DefaultIssueSearcherFactory

extends Object
implements IssueSearcherFactory
java.lang.Object
   ↳ com.atlassian.jira.issue.index.DefaultIssueSearcherFactory

Summary

Public Constructors
DefaultIssueSearcherFactory(IssueIndexer issueIndexer, IndexingConfiguration indexingConfiguration)
Public Methods
@Nonnull IndexSearcher getEntitySearcher(IndexDirectoryFactory.Name index)
Get an IndexSearcher that can be used to search the chosen index.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.index.IssueSearcherFactory

Public Constructors

public DefaultIssueSearcherFactory (IssueIndexer issueIndexer, IndexingConfiguration indexingConfiguration)

Public Methods

@Nonnull public IndexSearcher getEntitySearcher (IndexDirectoryFactory.Name index)

Get an IndexSearcher that can be used to search the chosen index.

Note: This is an unmanaged IndexSearcher. You MUST call close() when you are done with it. Alternatively you should really call passing in CHANGE_HISTORY_INDEX as it is a managed searcher and all the closing semantics are handled for you.