bloodhound-0.1.0.1: ElasticSearch client library for Haskell

Safe HaskellNone
LanguageHaskell2010

Database.Bloodhound.Types

Documentation

maybeJson :: ToJSON a => Text -> Maybe a -> [(Text, Value)] Source

maybeJsonF :: (ToJSON (f Value), ToJSON a, Functor f) => Text -> Maybe (f a) -> [Pair] Source

showText :: Show a => a -> Text Source

data Status a Source

Constructors

Status 

Fields

ok :: Bool
 
status :: Int
 
name :: Text
 
version :: a
 
tagline :: Text
 

Instances

Eq a => Eq (Status a) 
Show a => Show (Status a) 
FromJSON a => FromJSON (Status a) 

newtype Existence Source

Constructors

Existence Bool 

newtype NullValue Source

Constructors

NullValue Bool 

newtype Server Source

Constructors

Server String 

Instances

data EsResult a Source

Constructors

EsResult 

Fields

_index :: Text
 
_type :: Text
 
_id :: Text
 
_version :: Int
 
found :: Maybe Bool
 
_source :: a
 

Instances

Eq a => Eq (EsResult a) 
Show a => Show (EsResult a) 
FromJSON a => FromJSON (EsResult a) 

data Search Source

Constructors

Search 

Fields

queryBody :: Maybe Query
 
filterBody :: Maybe Filter
 
sortBody :: Maybe Sort
 
trackSortScores :: TrackSortScores
 
from :: From
 
size :: Size
 

data FromJSON a => SearchResult a Source

Constructors

SearchResult 

Instances

data FromJSON a => SearchHits a Source

Constructors

SearchHits 

Fields

hitsTotal :: Int
 
maxScore :: Score
 
hits :: [Hit a]
 

Instances

(Eq a, FromJSON a) => Eq (SearchHits a) 
(Show a, FromJSON a) => Show (SearchHits a) 
FromJSON a => FromJSON (SearchHits a) 

data FromJSON a => Hit a Source

Constructors

Hit 

Instances

(Eq a, FromJSON a) => Eq (Hit a) 
(Show a, FromJSON a) => Show (Hit a) 
FromJSON a => FromJSON (Hit a) 

class Monoid a => Seminearring a where Source

Minimal complete definition

(<||>)

Methods

(<||>) :: a -> a -> a infixr 5 Source

(<&&>) :: a -> a -> a infixr 5 Source

Instances

data Term Source

Constructors

Term 

Fields

termField :: Text
 
termValue :: Text
 

Instances

data LatLon Source

Constructors

LatLon 

Fields

lat :: Double
 
lon :: Double
 

newtype LessThan Source

Constructors

LessThan Double 

Instances

newtype LessThanEq Source

Constructors

LessThanEq Double 

newtype Regexp Source

Constructors

Regexp Text 

Instances

newtype DocId Source

Constructors

DocId String 

newtype CacheName Source

Constructors

CacheName Text 

newtype CacheKey Source

Constructors

CacheKey Text 

Instances

newtype Boost Source

Constructors

Boost Double