Class SearchResult
java.lang.Object
com.amazonaws.services.cloudsearchdomain.model.SearchResult
- All Implemented Interfaces:
Serializable
,Cloneable
The result of a Search
request. Contains the documents that
match the specified search criteria and any requested fields, highlights, and
facet information.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFacetsEntry
(String key, BucketInfo value) addStatsEntry
(String key, FieldStats value) Removes all the entries added into Facets.Removes all the entries added into Stats.clone()
boolean
The requested facet information.getHits()
The documents that match the search criteria.getStats()
The requested field statistics information.The status information returned for the search request.int
hashCode()
void
setFacets
(Map<String, BucketInfo> facets) The requested facet information.void
The documents that match the search criteria.void
setStats
(Map<String, FieldStats> stats) The requested field statistics information.void
setStatus
(SearchStatus status) The status information returned for the search request.toString()
Returns a string representation of this object; useful for testing and debugging.withFacets
(Map<String, BucketInfo> facets) The requested facet information.The documents that match the search criteria.withStats
(Map<String, FieldStats> stats) The requested field statistics information.withStatus
(SearchStatus status) The status information returned for the search request.
-
Constructor Details
-
SearchResult
public SearchResult()
-
-
Method Details
-
setStatus
The status information returned for the search request.
- Parameters:
status
- The status information returned for the search request.
-
getStatus
The status information returned for the search request.
- Returns:
- The status information returned for the search request.
-
withStatus
The status information returned for the search request.
- Parameters:
status
- The status information returned for the search request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHits
The documents that match the search criteria.
- Parameters:
hits
- The documents that match the search criteria.
-
getHits
The documents that match the search criteria.
- Returns:
- The documents that match the search criteria.
-
withHits
The documents that match the search criteria.
- Parameters:
hits
- The documents that match the search criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getFacets
The requested facet information.
- Returns:
- The requested facet information.
-
setFacets
The requested facet information.
- Parameters:
facets
- The requested facet information.
-
withFacets
The requested facet information.
- Parameters:
facets
- The requested facet information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addFacetsEntry
-
clearFacetsEntries
Removes all the entries added into Facets. <p> Returns a reference to this object so that method calls can be chained together. -
getStats
The requested field statistics information.
- Returns:
- The requested field statistics information.
-
setStats
The requested field statistics information.
- Parameters:
stats
- The requested field statistics information.
-
withStats
The requested field statistics information.
- Parameters:
stats
- The requested field statistics information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addStatsEntry
-
clearStatsEntries
Removes all the entries added into Stats. <p> Returns a reference to this object so that method calls can be chained together. -
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-