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 Search request. Contains the documents that match the specified search criteria and any requested fields, highlights, and facet information.

See Also:
  • Constructor Details

    • SearchResult

      public SearchResult()
  • Method Details

    • 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:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public SearchResult clone()
      Overrides:
      clone in class Object