Class SearchQueryResult

java.lang.Object
eu.xenit.alfred.api.search.SearchQueryResult

public class SearchQueryResult extends Object
Datastructure that represents the result of a search. noderefs: The list of noderefs that fulfill the search. facets: The facets available on the search result.
  • Field Details

    • totalResultCount

      public long totalResultCount
  • Constructor Details

    • SearchQueryResult

      public SearchQueryResult()
  • Method Details

    • getNoderefs

      public List<String> getNoderefs()
    • setNoderefs

      public void setNoderefs(List<String> noderefs)
    • addResult

      public void addResult(NodeRef nodeRef)
    • getFacets

      public List<FacetSearchResult> getFacets()
    • setFacets

      public void setFacets(List<FacetSearchResult> facets)
    • getTotalResultCount

      public long getTotalResultCount()
      Returns:
      Returns the total number of results for the search query. Depending on if the query is executed against the database or Solr this will include the skipped results or not.
    • setTotalResultCount

      public void setTotalResultCount(long totalResultCount)
    • getHighlights

      public Highlights getHighlights()
    • setHighlights

      public void setHighlights(Highlights highlights)
    • toString

      public String toString()
      Overrides:
      toString in class Object