Class DefaultContentNameSearchService
- java.lang.Object
-
- com.atlassian.confluence.impl.search.contentnames.DefaultContentNameSearchService
-
- All Implemented Interfaces:
ContentNameSearchService
public class DefaultContentNameSearchService extends Object implements ContentNameSearchService
-
-
Field Summary
Fields Modifier and Type Field Description static String
SEARCH_FOR_CSS_CLASS
-
Fields inherited from interface com.atlassian.confluence.search.contentnames.ContentNameSearchService
DEFAULT_MAX_RESULTS_PER_CATEGORY, DEFAULT_TOTAL_MAX_RESULTS
-
-
Constructor Summary
Constructors Constructor Description DefaultContentNameSearchService(SettingsManager settingsManager, I18NBeanFactory i18NBeanFactory, QueryTokenizer contentNameQueryTokenizer, SemaphoreHolder contentNameSearchSemaphoreHolder, com.atlassian.plugin.PluginAccessor pluginAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentNameSearchResult
search(String query, ContentNameSearchContext context)
This performs a content name search in Confluence and returns the results.
-
-
-
Field Detail
-
SEARCH_FOR_CSS_CLASS
public static final String SEARCH_FOR_CSS_CLASS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefaultContentNameSearchService
public DefaultContentNameSearchService(SettingsManager settingsManager, I18NBeanFactory i18NBeanFactory, QueryTokenizer contentNameQueryTokenizer, SemaphoreHolder contentNameSearchSemaphoreHolder, com.atlassian.plugin.PluginAccessor pluginAccessor)
-
-
Method Detail
-
search
public ContentNameSearchResult search(String query, ContentNameSearchContext context)
Description copied from interface:ContentNameSearchService
This performs a content name search in Confluence and returns the results.- Specified by:
search
in interfaceContentNameSearchService
- Parameters:
query
- The text that the user wishes to search for.context
- The search context to be used in order to carry the search request- Returns:
- The search results. Errors are also encapsulated in the returned object, null should NOT be returned.
-
-