public class DefaultContentNameSearchService extends Object implements ContentNameSearchService
Modifier and Type | Field and Description |
---|---|
static String |
SEARCH_FOR_CSS_CLASS |
DEFAULT_MAX_RESULTS_PER_CATEGORY, DEFAULT_TOTAL_MAX_RESULTS
Constructor and Description |
---|
DefaultContentNameSearchService(SettingsManager settingsManager,
I18NBeanFactory i18NBeanFactory,
QueryTokenizer contentNameQueryTokenizer,
SemaphoreHolder contentNameSearchSemaphoreHolder,
com.atlassian.plugin.PluginAccessor pluginAccessor) |
Modifier and Type | Method and Description |
---|---|
ContentNameSearchResult |
search(String query,
ContentNameSearchContext context)
This performs a content name search in Confluence and returns the results.
|
ContentNameSearchResult |
search(String query,
Iterable<String> types,
String spaceKey,
int maxPerCategory,
javax.servlet.http.HttpServletRequest httpServletRequest)
This performs a content name search in Confluence and returns the results.
|
public static final String SEARCH_FOR_CSS_CLASS
public DefaultContentNameSearchService(SettingsManager settingsManager, I18NBeanFactory i18NBeanFactory, QueryTokenizer contentNameQueryTokenizer, SemaphoreHolder contentNameSearchSemaphoreHolder, com.atlassian.plugin.PluginAccessor pluginAccessor)
public ContentNameSearchResult search(String query, Iterable<String> types, String spaceKey, int maxPerCategory, javax.servlet.http.HttpServletRequest httpServletRequest)
ContentNameSearchService
search
in interface ContentNameSearchService
query
- The text that the user wishes to search for.types
- Uses the default "types" (Search Categories) if nothing is provided, otherwise returns different Categories than the default.spaceKey
- You can restrict your search to a particular space if provided. By default it searches all of Confluence.maxPerCategory
- If maxPerCategory is -1 then it returns the default maximum amount, otherwise it returns the positive number provided.public ContentNameSearchResult search(String query, ContentNameSearchContext context)
ContentNameSearchService
search
in interface ContentNameSearchService
query
- The text that the user wishes to search for.context
- The search context to be used in order to carry the search requestCopyright © 2003–2019 Atlassian. All rights reserved.