Package com.atlassian.sal.api.search
Class SearchResults
java.lang.Object
com.atlassian.sal.api.search.SearchResults
Provides searchresults for a query. If there were any errors, check the list of errors. The searchresult will also
contain the total searchtime (in milliseconds).
- Since:
- 2.0
-
Constructor Summary
ConstructorsConstructorDescriptionSearchResults(List<Message> errors) Constructs search results that contained errorsSearchResults(List<SearchMatch> matches, int totalResults, long searchTime) Constructs search results with successful matches -
Method Summary
Modifier and TypeMethodDescriptionlongint
-
Constructor Details
-
SearchResults
Constructs search results that contained errors- Parameters:
errors- The error list
-
SearchResults
Constructs search results with successful matches- Parameters:
matches- The list of matchestotalResults- The total number of available resultssearchTime- The time the search took in milliseconds
-
-
Method Details
-
getErrors
- Returns:
- search errors
-
getMatches
- Returns:
- the matches
-
getSearchTime
public long getSearchTime()- Returns:
- the time the search took in milliseconds
-
getTotalResults
public int getTotalResults()- Returns:
- the total results available
-