Class SearchResult

    • Constructor Detail

      • SearchResult

        public SearchResult()
    • 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.
      • 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.
      • 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object