Class SearchResult

java.lang.Object
com.codename1.backend.search.SearchResult

public final class SearchResult extends Object
One page of hits, the total and the facet counts.
  • Constructor Details

    • SearchResult

      public SearchResult(List hits, long total, boolean totalExact, Map facets)
      A result. facets maps a field to a map of value to Long count.
  • Method Details

    • getHits

      public List getHits()
      The SearchHits of the page, best first unless a sort was given.
    • getTotal

      public long getTotal()
      How many documents matched in all.
    • isTotalExact

      public boolean isTotalExact()
      False when getTotal() is a lower bound: the engine stopped counting.
    • getFacets

      public Map getFacets()
      Facet field to a map of value to Long count, most frequent first.