@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SearchResult extends AmazonWebServiceResult<ResponseMetadata> implements 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.
Constructor and Description |
---|
SearchResult() |
Modifier and Type | Method and Description |
---|---|
SearchResult |
addFacetsEntry(String key,
BucketInfo value) |
SearchResult |
addStatsEntry(String key,
FieldStats value) |
SearchResult |
clearFacetsEntries()
Removes all the entries added into Facets.
|
SearchResult |
clearStatsEntries()
Removes all the entries added into Stats.
|
SearchResult |
clone() |
boolean |
equals(Object obj) |
Map<String,BucketInfo> |
getFacets()
The requested facet information.
|
Hits |
getHits()
The documents that match the search criteria.
|
Map<String,FieldStats> |
getStats()
The requested field statistics information.
|
SearchStatus |
getStatus()
The status information returned for the search request.
|
int |
hashCode() |
void |
setFacets(Map<String,BucketInfo> facets)
The requested facet information.
|
void |
setHits(Hits hits)
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.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
SearchResult |
withFacets(Map<String,BucketInfo> facets)
The requested facet information.
|
SearchResult |
withHits(Hits hits)
The documents that match the search criteria.
|
SearchResult |
withStats(Map<String,FieldStats> stats)
The requested field statistics information.
|
SearchResult |
withStatus(SearchStatus status)
The status information returned for the search request.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setStatus(SearchStatus status)
The status information returned for the search request.
status
- The status information returned for the search request.public SearchStatus getStatus()
The status information returned for the search request.
public SearchResult withStatus(SearchStatus status)
The status information returned for the search request.
status
- The status information returned for the search request.public void setHits(Hits hits)
The documents that match the search criteria.
hits
- The documents that match the search criteria.public Hits getHits()
The documents that match the search criteria.
public SearchResult withHits(Hits hits)
The documents that match the search criteria.
hits
- The documents that match the search criteria.public Map<String,BucketInfo> getFacets()
The requested facet information.
public void setFacets(Map<String,BucketInfo> facets)
The requested facet information.
facets
- The requested facet information.public SearchResult withFacets(Map<String,BucketInfo> facets)
The requested facet information.
facets
- The requested facet information.public SearchResult addFacetsEntry(String key, BucketInfo value)
public SearchResult clearFacetsEntries()
public Map<String,FieldStats> getStats()
The requested field statistics information.
public void setStats(Map<String,FieldStats> stats)
The requested field statistics information.
stats
- The requested field statistics information.public SearchResult withStats(Map<String,FieldStats> stats)
The requested field statistics information.
stats
- The requested field statistics information.public SearchResult addStatsEntry(String key, FieldStats value)
public SearchResult clearStatsEntries()
public String toString()
toString
in class Object
Object.toString()
public SearchResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.