SearchResults

lightdb.SearchResults
case class SearchResults[Doc <: Document[Doc], Model <: DocumentModel[Doc], V](model: Model, offset: Int, limit: Option[Int], total: Option[Int], iteratorWithScore: Iterator[(V, Double)], facetResults: Map[FacetField[Doc], FacetResult], transaction: Transaction[Doc])

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def facet(f: Model => FacetField[Doc]): FacetResult
def getFacet(f: Model => FacetField[Doc]): Option[FacetResult]
def iterator: Iterator[V]

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val list: List[V]
lazy val listWithScore: List[(V, Double)]
lazy val remaining: Option[Int]

Represents the total minus the current offset.

Represents the total minus the current offset.

Note: This represents the remaining when this query was executed because the number of records returned in this result set is unknown.

Attributes

lazy val scores: List[Double]