public class QuickSearchSearcherImpl extends Object implements QuickSearchSearcher
Constructor and Description |
---|
QuickSearchSearcherImpl(com.atlassian.bonnie.ILuceneConnection luceneConnection,
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,
BambooCachingPermissionManagerFacade cachingPermissionManagerFacade,
org.apache.lucene.search.BooleanQuery booleanQuery,
int resultCount,
int pagesize) |
protected boolean |
hasPermission(BambooCachingPermissionManagerFacade cachingPermissionManagerFacade,
org.apache.lucene.document.Document document) |
public QuickSearchSearcherImpl(com.atlassian.bonnie.ILuceneConnection luceneConnection, 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, BambooCachingPermissionManagerFacade cachingPermissionManagerFacade, org.apache.lucene.search.BooleanQuery booleanQuery, int resultCount, int pagesize) throws IOException
IOException
protected boolean hasPermission(BambooCachingPermissionManagerFacade cachingPermissionManagerFacade, org.apache.lucene.document.Document document)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.