solr-query-0.4.0: Solr query EDSL

Safe HaskellNone
LanguageHaskell2010

Solr.Query

Contents

Synopsis

Query class

class (Coercible query Builder, Default (LocalParams query)) => Query query Source #

Minimal complete definition

compileLocalParams

Associated Types

data LocalParams query :: * Source #

should :: Query query => query -> query Source #

This clause should occur.

must :: Query query => query -> query Source #

This clause must occur.

mustNot :: Query query => query -> query Source #

This clause must not occur.

filt :: Query query => query -> query Source #

This clause must occur, but it does not participate in scoring.

data SomeQuery Source #

SomeQuery is a simple wrapper around a Query that enables composition through its Monoid instance.

It has no LocalParams of its own - you can only create them with def.

someQuery :: Query query => LocalParams query -> query -> SomeQuery Source #

Create a SomeQuery from a Query and its LocalParams.

Compiling a Query

compile :: [Param] -> Text Source #

Compile a list of Param to a lazy Text.

Query params

data Param Source #

A query parameter.

fl :: Text -> Param Source #

The 'fl' query parameter.

fq :: Query query => FilterParams query -> query -> Param Source #

The 'fq' query parameter.

q :: Query query => LocalParams query -> query -> Param Source #

The 'q' query parameter.

rows :: Int -> Param Source #

The 'rows' query parameter.

sortAsc :: Text -> Param Source #

The 'sort' query parameter (ascending).

sortDesc :: Text -> Param Source #

The 'sort' query parameter (descending).

start :: Int -> Param Source #

The 'start' query parameter.

Re-exports

(&) :: a -> (a -> b) -> b infixl 1 #

& is a reverse application operator. This provides notational convenience. Its precedence is one higher than that of the forward application operator $, which allows & to be nested in $.

Since: 4.8.0.0

def :: Default a => a #

The default value for this type.