@Internal public class DelegatingContentNameSearcher extends Object implements ContentNameSearcher
| Constructor and Description |
|---|
DelegatingContentNameSearcher(ContentNameSearcher luceneContentNameSearcher,
ContentNameSearcher v2ContentNameSearcher,
DarkFeaturesManager darkFeaturesManager) |
DelegatingContentNameSearcher(ContentNameSearcher luceneContentNameSearcher,
ContentNameSearcher v2ContentNameSearcher,
Supplier<Boolean> shouldUseV2Searcher) |
| Modifier and Type | Method and Description |
|---|---|
Map<Category,List<SearchResult>> |
search(List<QueryToken> queryTokens,
ResultTemplate grouping,
Set<Attachment.Type> attachmentTypes,
boolean searchParentName,
int startIndex,
Integer pageSize,
Map<String,Object> params,
String... spaceKeys)
Search returning results in the specified space and
ResultTemplate
include pagination and search parent name support. |
List<SearchResult> |
searchNoCategorisation(List<QueryToken> queryTokens,
ResultTemplate results,
Set<Attachment.Type> attachmentTypes,
boolean searchParentName,
int startIndex,
Integer pageSize,
Map<String,Object> params,
String... spaceKeys)
Search returning results in the specified space and
ResultTemplate
include pagination and search parent name support. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsearch, search, search, searchpublic DelegatingContentNameSearcher(ContentNameSearcher luceneContentNameSearcher, ContentNameSearcher v2ContentNameSearcher, DarkFeaturesManager darkFeaturesManager)
public DelegatingContentNameSearcher(ContentNameSearcher luceneContentNameSearcher, ContentNameSearcher v2ContentNameSearcher, Supplier<Boolean> shouldUseV2Searcher)
public Map<Category,List<SearchResult>> search(List<QueryToken> queryTokens, ResultTemplate grouping, Set<Attachment.Type> attachmentTypes, boolean searchParentName, int startIndex, Integer pageSize, Map<String,Object> params, String... spaceKeys)
ContentNameSearcherResultTemplate
include pagination and search parent name support.search in interface ContentNameSearcherqueryTokens - the parsed tokens to search with.grouping - the grouping of the results you require.attachmentTypes - attachment types to filter attachments onsearchParentName - also applies the search to the parent name of the object (e.g. page name)startIndex - ignoredpageSize - ignoredparams - additional parameters to apply to the searchspaceKeys - the spaces to include in the searchpublic List<SearchResult> searchNoCategorisation(List<QueryToken> queryTokens, ResultTemplate results, Set<Attachment.Type> attachmentTypes, boolean searchParentName, int startIndex, Integer pageSize, Map<String,Object> params, String... spaceKeys)
ContentNameSearcherResultTemplate
include pagination and search parent name support. Results are not grouped.searchNoCategorisation in interface ContentNameSearcherqueryTokens - the parsed tokens to search with.attachmentTypes - attachment types to filter attachments onsearchParentName - also applies the search to the parent name of the object (e.g. page name)startIndex - ignoredpageSize - ignoredparams - additional parameters to apply to the searchspaceKeys - the spaces to include in the searchCopyright © 2003–2019 Atlassian. All rights reserved.