Class SearchResult
java.lang.Object
com.codename1.backend.search.SearchResult
One page of hits, the total and the facet counts.
-
Constructor Summary
ConstructorsConstructorDescriptionSearchResult(List hits, long total, boolean totalExact, Map facets) A result. -
Method Summary
Modifier and TypeMethodDescriptionFacet field to a map of value toLongcount, most frequent first.getHits()TheSearchHits of the page, best first unless a sort was given.longgetTotal()How many documents matched in all.booleanFalse whengetTotal()is a lower bound: the engine stopped counting.
-
Constructor Details
-
SearchResult
-
-
Method Details
-
getHits
-
getTotal
public long getTotal()How many documents matched in all. -
isTotalExact
public boolean isTotalExact()False whengetTotal()is a lower bound: the engine stopped counting. -
getFacets
Facet field to a map of value toLongcount, most frequent first.
-