case class Query[Doc <: Document[Doc], Model <: DocumentModel[Doc]](collection: Collection[Doc, Model], filter: Option[Filter[Doc]] = None, sort: List[Sort] = Nil, offset: Int = 0, limit: Option[Int] = None, countTotal: Boolean = false, scoreDocs: Boolean = false, minDocScore: Option[Double] = None, facets: List[FacetQuery[Doc]] = Nil) extends Product with Serializable
- Self Type
- Query[Doc, Model]
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Query
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Query(collection: Collection[Doc, Model], filter: Option[Filter[Doc]] = None, sort: List[Sort] = Nil, offset: Int = 0, limit: Option[Int] = None, countTotal: Boolean = false, scoreDocs: Boolean = false, minDocScore: Option[Double] = None, facets: List[FacetQuery[Doc]] = Nil)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def aggregate(f: (Model) => List[AggregateFunction[_, _, Doc]]): AggregateQuery[Doc, Model]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearFilters: Query[Doc, Model]
- def clearLimit: Query[Doc, Model]
- def clearSort: Query[Doc, Model]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- val collection: Collection[Doc, Model]
- def count(implicit transaction: Transaction[Doc]): Int
- def countTotal(b: Boolean): Query[Doc, Model]
- val countTotal: Boolean
- def distanceSearch[G <: Geo](field: Field[Doc, List[G]], from: Point, sort: Boolean, radius: Option[Distance])(implicit transaction: Transaction[Doc]): SearchResults[Doc, Model, DistanceAndDoc[Doc]]
- Attributes
- protected
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def facet(f: (Model) => FacetField[Doc], path: List[String] = Nil, childrenLimit: Option[Int] = Some(10), dimsLimit: Option[Int] = Some(10)): Query[Doc, Model]
- def facets(f: (Model) => List[FacetField[Doc]], childrenLimit: Option[Int] = Some(10), dimsLimit: Option[Int] = Some(10)): Query[Doc, Model]
- val facets: List[FacetQuery[Doc]]
- def filter(f: (Model) => Filter[Doc]): Query[Doc, Model]
- val filter: Option[Filter[Doc]]
- def first(implicit transaction: Transaction[Doc]): Option[Doc]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def grouped[F](f: (Model) => Field[Doc, F], direction: SortDirection = SortDirection.Ascending)(implicit transaction: Transaction[Doc]): GroupedIterator[Doc, F]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def iterator(implicit transaction: Transaction[Doc]): Iterator[Doc]
- def limit(limit: Int): Query[Doc, Model]
- val limit: Option[Int]
- def minDocScore(min: Double): Query[Doc, Model]
- val minDocScore: Option[Double]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def offset(offset: Int): Query[Doc, Model]
- val offset: Int
- def one(implicit transaction: Transaction[Doc]): Doc
- def process(establishLock: Boolean = true, deleteOnNone: Boolean = true, safeModify: Boolean = true)(f: (Doc) => Option[Doc])(implicit transaction: Transaction[Doc]): Unit
Processes through each result record from the query modifying the data in the database.
Processes through each result record from the query modifying the data in the database.
- establishLock
whether to establish an id lock to avoid concurrent modification (defaults to true)
- deleteOnNone
whether to delete the record if the function returns None (defaults to true)
- safeModify
whether to use safe modification. This results in loading the same object twice, but should never risk concurrent modification occurring. (defaults to true)
- f
the processing function for records
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val scoreDocs: Boolean
- def scored: Query[Doc, Model]
- def sort(sort: Sort*): Query[Doc, Model]
- val sort: List[Sort]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toList(implicit transaction: Transaction[Doc]): List[Doc]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object search
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)