public interface SearchProvider
| Modifier and Type | Method and Description |
|---|---|
SearchResults |
search(String username,
String searchQuery)
Deprecated.
since 2.10, use
search(com.atlassian.sal.api.user.UserKey, String) instead. |
SearchResults |
search(UserKey userKey,
String searchQuery)
Runs the a search given a query and returns a searchResult.
|
@Deprecated SearchResults search(String username, String searchQuery)
search(com.atlassian.sal.api.user.UserKey, String) instead.The searchQuery should be URLencoded, as it may contain parameters as well. For example if a search should only return a maximum number of hits the searchQuery would be '<searchString>&maxHits=20'
username - The user to run the search as. May be null for anonymous searches.searchQuery - The query to runSearchResults search(UserKey userKey, String searchQuery)
The searchQuery should be URLencoded, as it may contain parameters as well. For example if a search should only return a maximum number of hits the searchQuery would be '<searchString>&maxHits=20'
userKey - The key of the user to run the search as. May be null for anonymous searches.searchQuery - The query to runCopyright © 2018 Atlassian. All rights reserved.