bloodhound-0.19.0.0: Elasticsearch client library for Haskell
Safe HaskellNone
LanguageHaskell2010

Database.Bloodhound.Internal.Sort

Synopsis

Documentation

mkSort :: FieldName -> SortOrder -> DefaultSort Source #

mkSort defaults everything but the FieldName and the SortOrder so that you can concisely describe the usual kind of SortSpecs you want.

type Sort = [SortSpec] Source #

Sort is a synonym for a list of SortSpecs. Sort behavior is order dependent with later sorts acting as tie-breakers for earlier sorts.

data DefaultSort Source #

DefaultSort is usually the kind of SortSpec you'll want. There's a mkSort convenience function for when you want to specify only the most common parameters.

The ignoreUnmapped, when Just field is used to set the elastic unmapped_type

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-sort.html#search-request-sort

Instances

Instances details
Eq DefaultSort Source # 
Instance details

Defined in Database.Bloodhound.Internal.Sort

Show DefaultSort Source # 
Instance details

Defined in Database.Bloodhound.Internal.Sort

data Missing Source #

Missing prescribes how to handle missing fields. A missing field can be sorted last, first, or using a custom value as a substitute.

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-sort.html#_missing_values

Instances

Instances details
Eq Missing Source # 
Instance details

Defined in Database.Bloodhound.Internal.Sort

Methods

(==) :: Missing -> Missing -> Bool #

(/=) :: Missing -> Missing -> Bool #

Show Missing Source # 
Instance details

Defined in Database.Bloodhound.Internal.Sort

ToJSON Missing Source # 
Instance details

Defined in Database.Bloodhound.Internal.Sort