public class DefaultIssueSearcherFactory extends Object implements IssueSearcherFactory
Constructor and Description |
---|
DefaultIssueSearcherFactory(IssueIndexer issueIndexer,
IndexingConfiguration indexingConfiguration) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.IndexSearcher |
getEntitySearcher(IndexDirectoryFactory.Name index)
Get an
IndexSearcher that can be used to search the chosen index. |
public DefaultIssueSearcherFactory(IssueIndexer issueIndexer, IndexingConfiguration indexingConfiguration)
@Nonnull public org.apache.lucene.search.IndexSearcher getEntitySearcher(IndexDirectoryFactory.Name index)
IssueSearcherFactory
IndexSearcher
that can be used to search the chosen index.
Note: This is an unmanaged IndexSearcher. You MUST call IndexSearcher.close()
when you are done with it. Alternatively you should
really call com.atlassian.jira.issue.search.SearchProviderFactory#getSearcher(String))
passing in SearchProviderFactory.CHANGE_HISTORY_INDEX
as it is a managed
searcher and all the closing semantics are handled for you.
getEntitySearcher
in interface IssueSearcherFactory
Copyright © 2002-2015 Atlassian. All Rights Reserved.