Class Results

    • Constructor Detail

      • Results

        public Results​(java.lang.String cursor,
                       java.lang.Long start,
                       java.lang.Long size,
                       java.util.List<SortElement> sort,
                       java.util.Collection<java.lang.String> fields,
                       Highlight highlight,
                       java.lang.Boolean returnScore,
                       java.lang.Boolean includeRawResponse,
                       Group group,
                       java.lang.Boolean spellcheck)
    • Method Detail

      • getCursor

        public java.lang.String getCursor()
        Returns:
        cursor. Use Pagination.getCursor() from previous response to continue
      • getSize

        public java.lang.Long getSize()
        Returns:
        max number of documents to return
      • getSort

        public java.util.List<SortElement> getSort()
        Returns:
        sort order of search result
      • setCursor

        public void setCursor​(java.lang.String cursor)
      • setSize

        public void setSize​(long size)
      • getFields

        public java.util.Collection<java.lang.String> getFields()
        Returns:
        document fields to be included into search result
      • setFields

        public void setFields​(java.util.Collection<java.lang.String> fields)
      • getHighlight

        public Highlight getHighlight()
        Returns:
        results highlight parameters
      • setHighlight

        public void setHighlight​(Highlight highlight)
      • isReturnScore

        public java.lang.Boolean isReturnScore()
        Returns:
        include score with results
      • setReturnScore

        public void setReturnScore​(boolean returnScore)
      • setSort

        public void setSort​(java.util.List<? extends SortElement> sort)
      • getStart

        public java.lang.Long getStart()
        Returns:
        starting offset for documents in result
      • setStart

        public void setStart​(java.lang.Long start)
      • getIncludeRawResponse

        public java.lang.Boolean getIncludeRawResponse()
        Returns:
        include search engine response json
      • getGroup

        public Group getGroup()
        Returns:
        results grouping parameters
      • setGroup

        public void setGroup​(Group group)
      • isSpellcheck

        public java.lang.Boolean isSpellcheck()
        Returns:
        perform spellcheck on the userQuery
      • setSpellcheck

        public void setSpellcheck​(java.lang.Boolean spellcheck)