Class SearchResult
- java.lang.Object
-
- com.amazonaws.services.cloudsearchdomain.model.SearchResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class SearchResult extends Object implements Serializable, Cloneable
The result of a
Searchrequest. Contains the documents that match the specified search criteria and any requested fields, highlights, and facet information.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SearchResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchResultaddFacetsEntry(String key, BucketInfo value)SearchResultaddStatsEntry(String key, FieldStats value)SearchResultclearFacetsEntries()Removes all the entries added into Facets.SearchResultclearStatsEntries()Removes all the entries added into Stats.SearchResultclone()booleanequals(Object obj)Map<String,BucketInfo>getFacets()The requested facet information.HitsgetHits()The documents that match the search criteria.Map<String,FieldStats>getStats()The requested field statistics information.SearchStatusgetStatus()The status information returned for the search request.inthashCode()voidsetFacets(Map<String,BucketInfo> facets)The requested facet information.voidsetHits(Hits hits)The documents that match the search criteria.voidsetStats(Map<String,FieldStats> stats)The requested field statistics information.voidsetStatus(SearchStatus status)The status information returned for the search request.StringtoString()Returns a string representation of this object; useful for testing and debugging.SearchResultwithFacets(Map<String,BucketInfo> facets)The requested facet information.SearchResultwithHits(Hits hits)The documents that match the search criteria.SearchResultwithStats(Map<String,FieldStats> stats)The requested field statistics information.SearchResultwithStatus(SearchStatus status)The status information returned for the search request.
-
-
-
Method Detail
-
setStatus
public void setStatus(SearchStatus status)
The status information returned for the search request.
- Parameters:
status- The status information returned for the search request.
-
getStatus
public SearchStatus getStatus()
The status information returned for the search request.
- Returns:
- The status information returned for the search request.
-
withStatus
public SearchResult withStatus(SearchStatus status)
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
public void setHits(Hits hits)
The documents that match the search criteria.
- Parameters:
hits- The documents that match the search criteria.
-
getHits
public Hits getHits()
The documents that match the search criteria.
- Returns:
- The documents that match the search criteria.
-
withHits
public SearchResult withHits(Hits hits)
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
public Map<String,BucketInfo> getFacets()
The requested facet information.
- Returns:
- The requested facet information.
-
setFacets
public void setFacets(Map<String,BucketInfo> facets)
The requested facet information.
- Parameters:
facets- The requested facet information.
-
withFacets
public SearchResult withFacets(Map<String,BucketInfo> facets)
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
public SearchResult addFacetsEntry(String key, BucketInfo value)
-
clearFacetsEntries
public SearchResult clearFacetsEntries()
Removes all the entries added into Facets. <p> Returns a reference to this object so that method calls can be chained together.
-
getStats
public Map<String,FieldStats> getStats()
The requested field statistics information.
- Returns:
- The requested field statistics information.
-
setStats
public void setStats(Map<String,FieldStats> stats)
The requested field statistics information.
- Parameters:
stats- The requested field statistics information.
-
withStats
public SearchResult withStats(Map<String,FieldStats> stats)
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
public SearchResult addStatsEntry(String key, FieldStats value)
-
clearStatsEntries
public SearchResult clearStatsEntries()
Removes all the entries added into Stats. <p> Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SearchResult clone()
-
-