Class SolrSearchResponse

  • All Implemented Interfaces:
    Serializable, Iterable<Object>, Supplier<Stream<Object>>, org.springframework.data.domain.Page<Object>, org.springframework.data.domain.Slice<Object>, org.springframework.data.util.Streamable<Object>

    public class SolrSearchResponse
    extends com.broadleafcommerce.search.api.domain.SearchResponse
    Solr specific SearchResponse to include raw QueryResponse
    See Also:
    Serialized Form
    • Constructor Detail

      • SolrSearchResponse

        public SolrSearchResponse​(List<Object> content,
                                  org.springframework.data.domain.Pageable pageable,
                                  long total)
    • Method Detail

      • getDebug

        public String getDebug()
        The raw query response for debugging purposes.
        Returns:
        raw query response
      • setDebug

        public void setDebug​(String debug)
        The raw query response for debugging purposes.
        Parameters:
        debug - raw query response
      • toString

        public String toString()
        Overrides:
        toString in class com.broadleafcommerce.search.api.domain.SearchResponse
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.broadleafcommerce.search.api.domain.SearchResponse
      • canEqual

        protected boolean canEqual​(Object other)
        Overrides:
        canEqual in class com.broadleafcommerce.search.api.domain.SearchResponse
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.broadleafcommerce.search.api.domain.SearchResponse
      • getNumber

        public int getNumber()
        Specified by:
        getNumber in interface org.springframework.data.domain.Slice<T extends Object>
      • getSize

        public int getSize()
        Specified by:
        getSize in interface org.springframework.data.domain.Slice<T extends Object>
      • getNumberOfElements

        public int getNumberOfElements()
        Specified by:
        getNumberOfElements in interface org.springframework.data.domain.Slice<T extends Object>
      • hasPrevious

        public boolean hasPrevious()
        Specified by:
        hasPrevious in interface org.springframework.data.domain.Slice<T extends Object>
      • isFirst

        public boolean isFirst()
        Specified by:
        isFirst in interface org.springframework.data.domain.Slice<T extends Object>
      • nextPageable

        public org.springframework.data.domain.Pageable nextPageable()
        Specified by:
        nextPageable in interface org.springframework.data.domain.Slice<T extends Object>
      • previousPageable

        public org.springframework.data.domain.Pageable previousPageable()
        Specified by:
        previousPageable in interface org.springframework.data.domain.Slice<T extends Object>
      • hasContent

        public boolean hasContent()
        Specified by:
        hasContent in interface org.springframework.data.domain.Slice<T extends Object>
      • getContent

        public List<T> getContent()
        Specified by:
        getContent in interface org.springframework.data.domain.Slice<T extends Object>
      • getPageable

        public org.springframework.data.domain.Pageable getPageable()
        Specified by:
        getPageable in interface org.springframework.data.domain.Slice<T extends Object>
      • getSort

        public org.springframework.data.domain.Sort getSort()
        Specified by:
        getSort in interface org.springframework.data.domain.Slice<T extends Object>
      • getConvertedContent

        protected <U extends ObjectList<U> getConvertedContent​(Function<? super T,​? extends U> arg0)