com.atlassian.confluence.search.contentnames
Interface ContentNameSearcher

All Known Implementing Classes:
LuceneContentNameSearcher

public interface ContentNameSearcher

Search for Confluence content by its name (for Pages we search title, for users, we search full names, etc.).


Method Summary
 java.util.Map<Category,java.util.List<SearchResult>> search(java.util.List<QueryToken> queryTokens)
          Search and expect results using the Confluence default ResultTemplate.
 java.util.Map<Category,java.util.List<SearchResult>> search(java.util.List<QueryToken> queryTokens, ResultTemplate grouping)
          Search returning results meeting the specified ResultTemplate.
 java.util.Map<Category,java.util.List<SearchResult>> search(java.util.List<QueryToken> queryTokens, ResultTemplate grouping, java.util.Set<Attachment.Type> attachmentTypes, java.lang.String... spaceKeys)
          Search returning results in the specified space and ResultTemplate
 java.util.Map<Category,java.util.List<SearchResult>> search(java.util.List<QueryToken> queryTokens, ResultTemplate grouping, java.lang.String... spaceKeys)
          Search returning results in the specified space and ResultTemplate
 

Method Detail

search

java.util.Map<Category,java.util.List<SearchResult>> search(java.util.List<QueryToken> queryTokens)
Search and expect results using the Confluence default ResultTemplate.

Parameters:
queryTokens - the parsed tokens to search with.
Returns:
results keyed by the grouping they are for.
Throws:
java.lang.IllegalArgumentException - if the supplied queryTokens are empty
See Also:
ResultTemplate.DEFAULT, QueryTokenizer

search

java.util.Map<Category,java.util.List<SearchResult>> search(java.util.List<QueryToken> queryTokens,
                                                            ResultTemplate grouping)
Search returning results meeting the specified ResultTemplate.

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:
java.lang.IllegalArgumentException - if the supplied queryTokens are empty or the supplied grouping is null.
See Also:
QueryTokenizer

search

java.util.Map<Category,java.util.List<SearchResult>> search(java.util.List<QueryToken> queryTokens,
                                                            ResultTemplate grouping,
                                                            java.lang.String... spaceKeys)
Search returning results in the specified space and ResultTemplate

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:
java.lang.IllegalArgumentException - if the supplied queryTokens are empty or the supplied grouping is null.
See Also:
QueryTokenizer

search

java.util.Map<Category,java.util.List<SearchResult>> search(java.util.List<QueryToken> queryTokens,
                                                            ResultTemplate grouping,
                                                            java.util.Set<Attachment.Type> attachmentTypes,
                                                            java.lang.String... spaceKeys)
Search returning results in the specified space and ResultTemplate

Parameters:
queryTokens - the parsed tokens to search with.
grouping - the grouping of the results you require.
attachmentTypes - attachment types to filter attachments on
Returns:
results keyed by the grouping they are for.
Throws:
java.lang.IllegalArgumentException - if the supplied queryTokens are empty or the supplied grouping is null.
See Also:
QueryTokenizer


Copyright © 2003-2010 Atlassian. All Rights Reserved.