Query

pink.cozydev.lucille.Query
See theQuery companion object
sealed trait Query extends Product, Serializable

A trait for all queries

Attributes

Companion
object
Source
Query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class And
class Boost
class Field
class Group
class MinimumMatch
class Not
class Or
class UnaryMinus
class UnaryPlus
trait TermQuery
class Fuzzy
class Phrase
class Prefix
class Proximity
class Term
class TermRange
class TermRegex
class WildCard
Show all

Members list

Value members

Abstract methods

def mapLastTerm(f: Term => Query): Query

Builds a new query by applying a Term => Query function to a Term if it is in the last position.

Builds a new query by applying a Term => Query function to a Term if it is in the last position.

Value parameters

f

the function to apply to the last TermQuery

Attributes

Returns
Source
Query.scala
def traverseQ[G[_] : Applicative](f: TermQuery => G[Query]): G[Query]

Traverse or "walk" over the Query tree structure applying the effectful function f to the TermQuery leaf nodes along the way and collecting the results.

Traverse or "walk" over the Query tree structure applying the effectful function f to the TermQuery leaf nodes along the way and collecting the results. If the resulting context G has a Query, it will have the same structure as the original Query. "Branch" queries like Query.And/Or/Not/Group, and similar are not affected, just the leaf nodes.

Value parameters

f

effectful function

Attributes

Returns

the query in context G

Source
Query.scala

Concrete methods

def and(q: Query): Query

Attributes

Source
Query.scala
def boost(b: Float): Query

Attributes

Source
Query.scala
def not: Query

Attributes

Source
Query.scala
def or(q: Query): Query

Attributes

Source
Query.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Inherited and Abstract methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product