Class SearchApiResponse<T extends ResponseDocument>

    • Constructor Detail

      • SearchApiResponse

        public SearchApiResponse()
    • Method Detail

      • getFacets

        public List<Facet> getFacets()
        Get the facets
        Returns:
        The facets
      • isWarning

        public boolean isWarning()
        Returns if there is 1 or more warnings for this response
        Returns:
        true if there is at least 1 warning, otherwise false
      • isAlert

        public boolean isAlert()
        Returns if there is 1 or more alerts for this response
        Returns:
        true if there is at least 1 alert, otherwise false
      • isError

        public boolean isError()
        Description copied from interface: ErrorableResponse
        Gets whether this response contains any errors from the requested operation
        Specified by:
        isError in interface ErrorableResponse
        Returns:
        true if 1 or more errors occurred, otherwise false
      • getMeta

        public Meta getMeta()
        Object delimiting the results meta data.
        Returns:
        the page metadata
      • getResults

        public List<T> getResults()
        The documents returned by the request
        Returns:
        the results
      • getErrors

        public List<String> getErrors()
        The errors associated with this response, if any
        Returns:
        the errors
      • setMeta

        public SearchApiResponse<T> setMeta​(Meta meta)
        Object delimiting the results meta data.
        Parameters:
        meta - the page metadata
        Returns:
        this.
      • setResults

        public SearchApiResponse<T> setResults​(List<T> results)
        The documents returned by the request
        Parameters:
        results - the results
        Returns:
        this.
      • setErrors

        public SearchApiResponse<T> setErrors​(List<String> errors)
        The errors associated with this response, if any
        Parameters:
        errors - the errors
        Returns:
        this.
      • setFacetMap

        public SearchApiResponse<T> setFacetMap​(Map<String,​List<Facet>> facetMap)
        Value and Range facets for the query
        Parameters:
        facetMap - The facets to build on the search results
        Returns:
        this.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object