public interface ContentNameSearchService
An search service that will take a query String and apply it as a search across the 'universal title' field within the Confluence search index.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_RESULTS_PER_CATEGORY
This can be passed into maxPerCategory to indicate that you wish to get the default number of results back from Confluence.
|
static int |
DEFAULT_TOTAL_MAX_RESULTS |
Modifier and Type | Method and Description |
---|---|
default 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)
Deprecated.
since 6.13.0, use
search(String, ContentNameSearchContext) |
static final int DEFAULT_MAX_RESULTS_PER_CATEGORY
static final int DEFAULT_TOTAL_MAX_RESULTS
@Deprecated ContentNameSearchResult search(String query, Iterable<String> types, String spaceKey, int maxPerCategory, javax.servlet.http.HttpServletRequest httpServletRequest)
search(String, ContentNameSearchContext)
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.default ContentNameSearchResult search(String query, ContentNameSearchContext context)
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–2021 Atlassian. All rights reserved.