public class QuickSearchSearcherImpl extends Object implements QuickSearchSearcher
Constructor and Description |
---|
QuickSearchSearcherImpl(com.atlassian.bonnie.ILuceneConnection luceneConnection,
BambooCachingPermissionManagerFacade cachingPermissionManagerFacade,
IndexerService indexerService) |
Modifier and Type | Method and Description |
---|---|
List<QuickSearchDocument> |
findItemsMatching(String searchTerm)
Finds top 10 matching items in the index.
|
protected List<QuickSearchDocument> |
getQuickSearchDocuments(org.apache.lucene.search.IndexSearcher searcher,
org.apache.lucene.search.BooleanQuery booleanQuery,
int resultCount,
int pagesize) |
protected boolean |
hasPermission(org.apache.lucene.document.Document document) |
public QuickSearchSearcherImpl(com.atlassian.bonnie.ILuceneConnection luceneConnection, BambooCachingPermissionManagerFacade cachingPermissionManagerFacade, IndexerService indexerService)
@NotNull public List<QuickSearchDocument> findItemsMatching(@NotNull String searchTerm)
QuickSearchSearcher
findItemsMatching
in interface QuickSearchSearcher
searchTerm
- term to search forprotected List<QuickSearchDocument> getQuickSearchDocuments(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.BooleanQuery booleanQuery, int resultCount, int pagesize) throws IOException
IOException
protected boolean hasPermission(org.apache.lucene.document.Document document)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.