public class SearchResult extends Object 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 |
clearFacetsEntries()
Removes all the entries added into Facets.
|
SearchResult |
clone() |
boolean |
equals(Object obj) |
Map<String,BucketInfo> |
getFacets()
The requested facet information.
|
Hits |
getHits()
The documents that match the search criteria.
|
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 |
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 |
withStatus(SearchStatus status)
The status information returned for the search request.
|
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 String toString()
toString
in class Object
Object.toString()
public SearchResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.