Interface ContentNameSearcher
-
public interface ContentNameSearcherSearch for Confluence content by its name (for Pages we search title, for users, we search full names, etc.).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Map<Category,List<SearchResult>>search(List<QueryToken> queryTokens)Search and expect results using the Confluence defaultResultTemplate.default Map<Category,List<SearchResult>>search(List<QueryToken> queryTokens, ResultTemplate grouping)Search returning results meeting the specifiedResultTemplate.default Map<Category,List<SearchResult>>search(List<QueryToken> queryTokens, ResultTemplate grouping, String... spaceKeys)Search returning results in the specified space andResultTemplateMap<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 andResultTemplateinclude pagination and search parent name support.default Map<Category,List<SearchResult>>search(List<QueryToken> queryTokens, ResultTemplate resultTemplate, Set<Attachment.Type> attachmentTypes, String... spaceKeys)Search returning results in the specified space andResultTemplateList<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 andResultTemplateinclude pagination and search parent name support.
-
-
-
Method Detail
-
search
default Map<Category,List<SearchResult>> search(List<QueryToken> queryTokens)
Search and expect results using the Confluence defaultResultTemplate.- Parameters:
queryTokens- the parsed tokens to search with.- Returns:
- results keyed by the grouping they are for.
- Throws:
IllegalArgumentException- if the supplied queryTokens are empty- See Also:
ResultTemplate.DEFAULT,QueryTokenizer
-
search
default Map<Category,List<SearchResult>> search(List<QueryToken> queryTokens, ResultTemplate grouping)
Search returning results meeting the specifiedResultTemplate.- Parameters:
queryTokens- the parsed tokens to search with.grouping- the grouping of the results you require.- Returns:
- results keyed by the grouping they are for.
- Throws:
IllegalArgumentException- if the supplied queryTokens are empty or the supplied grouping is null.- See Also:
QueryTokenizer
-
search
default Map<Category,List<SearchResult>> search(List<QueryToken> queryTokens, ResultTemplate grouping, String... spaceKeys)
Search returning results in the specified space andResultTemplate- Parameters:
queryTokens- the parsed tokens to search with.grouping- the grouping of the results you require.- Returns:
- results keyed by the grouping they are for.
- Throws:
IllegalArgumentException- if the supplied queryTokens are empty or the supplied grouping is null.- See Also:
QueryTokenizer
-
search
default Map<Category,List<SearchResult>> search(List<QueryToken> queryTokens, ResultTemplate resultTemplate, Set<Attachment.Type> attachmentTypes, String... spaceKeys)
Search returning results in the specified space andResultTemplate- Parameters:
queryTokens- the parsed tokens to search with.resultTemplate- the grouping of the results you require.attachmentTypes- attachment types to filter attachments on- Returns:
- results keyed by the grouping they are for.
- Throws:
IllegalArgumentException- if the supplied queryTokens are empty or the supplied grouping is null.- See Also:
QueryTokenizer
-
search
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 andResultTemplateinclude pagination and search parent name support.- Parameters:
queryTokens- 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 search- Returns:
-
searchNoCategorisation
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 andResultTemplateinclude pagination and search parent name support. Results are not grouped.- Parameters:
queryTokens- 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 search- Returns:
-
-