bloodhound-0.15.0.0: ElasticSearch client library for Haskell

Copyright(C) 2014 2015 2016 Chris Allen
LicenseBSD-style (see the file LICENSE)
MaintainerChris Allen <cma@bitemyapp.com
Stabilityprovisional
PortabilityDeriveGeneric, RecordWildCards
Safe HaskellNone
LanguageHaskell2010

Database.V1.Bloodhound.Types

Description

Data types for describing actions and data structures performed to interact with Elasticsearch. The two main buckets your queries against Elasticsearch will fall into are Querys and Filters. Filters are more like traditional database constraints and often have preferable performance properties. Querys support human-written textual queries, such as fuzzy queries.

Synopsis

Documentation

defaultIndexDocumentSettings :: IndexDocumentSettings Source #

Reasonable default settings. Chooses no version control and no parent.

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.

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

unpackId :: DocId -> Text Source #

unpackId is a silly convenience function that gets used once.

mkMatchQuery :: FieldName -> QueryString -> MatchQuery Source #

mkMatchQuery is a convenience function that defaults the less common parameters, enabling you to provide only the FieldName and QueryString to make a MatchQuery

mkMultiMatchQuery :: [FieldName] -> QueryString -> MultiMatchQuery Source #

mkMultiMatchQuery is a convenience function that defaults the less common parameters, enabling you to provide only the list of FieldNames and QueryString to make a MultiMatchQuery.

mkDocVersion :: Int -> Maybe DocVersion Source #

Smart constructor for in-range doc version

newtype BH m a Source #

Constructors

BH 

Fields

Instances

MonadTrans BH Source # 

Methods

lift :: Monad m => m a -> BH m a #

MonadError e m => MonadError e (BH m) Source # 

Methods

throwError :: e -> BH m a #

catchError :: BH m a -> (e -> BH m a) -> BH m a #

MonadReader r m => MonadReader r (BH m) Source # 

Methods

ask :: BH m r #

local :: (r -> r) -> BH m a -> BH m a #

reader :: (r -> a) -> BH m a #

MonadState s m => MonadState s (BH m) Source # 

Methods

get :: BH m s #

put :: s -> BH m () #

state :: (s -> (a, s)) -> BH m a #

MonadWriter w m => MonadWriter w (BH m) Source # 

Methods

writer :: (a, w) -> BH m a #

tell :: w -> BH m () #

listen :: BH m a -> BH m (a, w) #

pass :: BH m (a, w -> w) -> BH m a #

Monad m => Monad (BH m) Source # 

Methods

(>>=) :: BH m a -> (a -> BH m b) -> BH m b #

(>>) :: BH m a -> BH m b -> BH m b #

return :: a -> BH m a #

fail :: String -> BH m a #

Functor m => Functor (BH m) Source # 

Methods

fmap :: (a -> b) -> BH m a -> BH m b #

(<$) :: a -> BH m b -> BH m a #

MonadFix m => MonadFix (BH m) Source # 

Methods

mfix :: (a -> BH m a) -> BH m a #

Applicative m => Applicative (BH m) Source # 

Methods

pure :: a -> BH m a #

(<*>) :: BH m (a -> b) -> BH m a -> BH m b #

(*>) :: BH m a -> BH m b -> BH m b #

(<*) :: BH m a -> BH m b -> BH m a #

Alternative m => Alternative (BH m) Source # 

Methods

empty :: BH m a #

(<|>) :: BH m a -> BH m a -> BH m a #

some :: BH m a -> BH m [a] #

many :: BH m a -> BH m [a] #

MonadPlus m => MonadPlus (BH m) Source # 

Methods

mzero :: BH m a #

mplus :: BH m a -> BH m a -> BH m a #

MonadIO m => MonadIO (BH m) Source # 

Methods

liftIO :: IO a -> BH m a #

MonadThrow m => MonadThrow (BH m) Source # 

Methods

throwM :: Exception e => e -> BH m a #

MonadCatch m => MonadCatch (BH m) Source # 

Methods

catch :: Exception e => BH m a -> (e -> BH m a) -> BH m a #

MonadMask m => MonadMask (BH m) Source # 

Methods

mask :: ((forall a. BH m a -> BH m a) -> BH m b) -> BH m b #

uninterruptibleMask :: ((forall a. BH m a -> BH m a) -> BH m b) -> BH m b #

(Functor m, Applicative m, MonadIO m) => MonadBH (BH m) Source # 

Methods

getBHEnv :: BH m BHEnv Source #

runBH :: BHEnv -> BH m a -> m a Source #

data BHEnv Source #

Common environment for Elasticsearch calls. Connections will be pipelined according to the provided HTTP connection manager.

bhRequestHook :: BHEnv -> Request -> IO Request Source #

Low-level hook that is run before every request is sent. Used to implement custom authentication strategies. Defaults to return with mkBHEnv.

mkBHEnv :: Server -> Manager -> BHEnv Source #

Create a BHEnv with all optional fields defaulted. HTTP hook will be a noop. You can use the exported fields to customize it further, e.g.:

> (mkBHEnv myServer myManager) { bhRequestHook = customHook }

class (Functor m, Applicative m, MonadIO m) => MonadBH m where Source #

All API calls to Elasticsearch operate within MonadBH . The idea is that it can be easily embedded in your own monad transformer stack. A default instance for a ReaderT and alias BH is provided for the simple case.

Minimal complete definition

getBHEnv

Methods

getBHEnv :: m BHEnv Source #

data Version Source #

Version is embedded in Status

Instances

Eq Version Source # 

Methods

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

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

Read Version Source # 
Show Version Source # 
Generic Version Source # 

Associated Types

type Rep Version :: * -> * #

Methods

from :: Version -> Rep Version x #

to :: Rep Version x -> Version #

ToJSON Version Source # 
FromJSON Version Source # 
type Rep Version Source # 

newtype VersionNumber Source #

Traditional software versioning number

Constructors

VersionNumber 

Instances

Eq VersionNumber Source # 
Ord VersionNumber Source # 
Read VersionNumber Source # 
Show VersionNumber Source # 
Generic VersionNumber Source # 

Associated Types

type Rep VersionNumber :: * -> * #

ToJSON VersionNumber Source # 
FromJSON VersionNumber Source # 
type Rep VersionNumber Source # 
type Rep VersionNumber = D1 (MetaData "VersionNumber" "Database.V1.Bloodhound.Types" "bloodhound-0.15.0.0-CuLLpCTgKxzBYrnesXL2n1" True) (C1 (MetaCons "VersionNumber" PrefixI True) (S1 (MetaSel (Just Symbol "versionNumber") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Version)))

newtype MaybeNA a Source #

Constructors

MaybeNA 

Fields

Instances

Eq a => Eq (MaybeNA a) Source # 

Methods

(==) :: MaybeNA a -> MaybeNA a -> Bool #

(/=) :: MaybeNA a -> MaybeNA a -> Bool #

Show a => Show (MaybeNA a) Source # 

Methods

showsPrec :: Int -> MaybeNA a -> ShowS #

show :: MaybeNA a -> String #

showList :: [MaybeNA a] -> ShowS #

FromJSON a => FromJSON (MaybeNA a) Source # 

newtype BuildHash Source #

Typically a 7 character hex string.

Constructors

BuildHash 

Fields

Instances

Eq BuildHash Source # 
Ord BuildHash Source # 
Read BuildHash Source # 
Show BuildHash Source # 
Generic BuildHash Source # 

Associated Types

type Rep BuildHash :: * -> * #

ToJSON BuildHash Source # 
FromJSON BuildHash Source # 
type Rep BuildHash Source # 
type Rep BuildHash = D1 (MetaData "BuildHash" "Database.V1.Bloodhound.Types" "bloodhound-0.15.0.0-CuLLpCTgKxzBYrnesXL2n1" True) (C1 (MetaCons "BuildHash" PrefixI True) (S1 (MetaSel (Just Symbol "buildHash") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

data Status Source #

Status is a data type for describing the JSON body returned by Elasticsearch when you query its status. This was deprecated in 1.2.0.

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-status.html#indices-status

Constructors

Status 

Fields

data IndexSettings Source #

IndexSettings is used to configure the shards and replicas when you create an Elasticsearch Index.

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-create-index.html

data UpdatableIndexSetting Source #

Constructors

NumberOfReplicas ReplicaCount

The number of replicas each shard has.

AutoExpandReplicas ReplicaBounds 
BlocksReadOnly Bool

Set to True to have the index read only. False to allow writes and metadata changes.

BlocksRead Bool

Set to True to disable read operations against the index.

BlocksWrite Bool

Set to True to disable write operations against the index.

BlocksMetaData Bool

Set to True to disable metadata operations against the index.

RefreshInterval NominalDiffTime

The async refresh interval of a shard

IndexConcurrency Int 
FailOnMergeFailure Bool 
TranslogFlushThresholdOps Int

When to flush on operations.

TranslogFlushThresholdSize Bytes

When to flush based on translog (bytes) size.

TranslogFlushThresholdPeriod NominalDiffTime

When to flush based on a period of not flushing.

TranslogDisableFlush Bool

Disables flushing. Note, should be set for a short interval and then enabled.

CacheFilterMaxSize (Maybe Bytes)

The maximum size of filter cache (per segment in shard).

CacheFilterExpire (Maybe NominalDiffTime)

The expire after access time for filter cache.

GatewaySnapshotInterval NominalDiffTime

The gateway snapshot interval (only applies to shared gateways).

RoutingAllocationInclude (NonEmpty NodeAttrFilter)

A node matching any rule will be allowed to host shards from the index.

RoutingAllocationExclude (NonEmpty NodeAttrFilter)

A node matching any rule will NOT be allowed to host shards from the index.

RoutingAllocationRequire (NonEmpty NodeAttrFilter)

Only nodes matching all rules will be allowed to host shards from the index.

RoutingAllocationEnable AllocationPolicy

Enables shard allocation for a specific index.

RoutingAllocationShardsPerNode ShardCount

Controls the total number of shards (replicas and primaries) allowed to be allocated on a single node.

RecoveryInitialShards InitialShardCount

When using local gateway a particular shard is recovered only if there can be allocated quorum shards in the cluster.

GCDeletes NominalDiffTime 
TTLDisablePurge Bool

Disables temporarily the purge of expired docs.

TranslogFSType FSType 
IndexCompoundFormat CompoundFormat 
IndexCompoundOnFlush Bool 
WarmerEnabled Bool 

Instances

Eq UpdatableIndexSetting Source # 
Show UpdatableIndexSetting Source # 
Generic UpdatableIndexSetting Source # 
ToJSON UpdatableIndexSetting Source # 
FromJSON UpdatableIndexSetting Source # 
type Rep UpdatableIndexSetting Source # 
type Rep UpdatableIndexSetting = D1 (MetaData "UpdatableIndexSetting" "Database.V1.Bloodhound.Types" "bloodhound-0.15.0.0-CuLLpCTgKxzBYrnesXL2n1" False) ((:+:) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "NumberOfReplicas" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ReplicaCount))) ((:+:) (C1 (MetaCons "AutoExpandReplicas" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ReplicaBounds))) (C1 (MetaCons "BlocksReadOnly" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool))))) ((:+:) ((:+:) (C1 (MetaCons "BlocksRead" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool))) (C1 (MetaCons "BlocksWrite" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool)))) ((:+:) (C1 (MetaCons "BlocksMetaData" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool))) (C1 (MetaCons "RefreshInterval" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 NominalDiffTime)))))) ((:+:) ((:+:) (C1 (MetaCons "IndexConcurrency" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int))) ((:+:) (C1 (MetaCons "FailOnMergeFailure" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool))) (C1 (MetaCons "TranslogFlushThresholdOps" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int))))) ((:+:) ((:+:) (C1 (MetaCons "TranslogFlushThresholdSize" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bytes))) (C1 (MetaCons "TranslogFlushThresholdPeriod" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 NominalDiffTime)))) ((:+:) (C1 (MetaCons "TranslogDisableFlush" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool))) (C1 (MetaCons "CacheFilterMaxSize" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bytes)))))))) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "CacheFilterExpire" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe NominalDiffTime)))) ((:+:) (C1 (MetaCons "GatewaySnapshotInterval" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 NominalDiffTime))) (C1 (MetaCons "RoutingAllocationInclude" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (NonEmpty NodeAttrFilter)))))) ((:+:) ((:+:) (C1 (MetaCons "RoutingAllocationExclude" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (NonEmpty NodeAttrFilter)))) (C1 (MetaCons "RoutingAllocationRequire" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (NonEmpty NodeAttrFilter))))) ((:+:) (C1 (MetaCons "RoutingAllocationEnable" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 AllocationPolicy))) (C1 (MetaCons "RoutingAllocationShardsPerNode" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ShardCount)))))) ((:+:) ((:+:) (C1 (MetaCons "RecoveryInitialShards" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 InitialShardCount))) ((:+:) (C1 (MetaCons "GCDeletes" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 NominalDiffTime))) (C1 (MetaCons "TTLDisablePurge" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool))))) ((:+:) ((:+:) (C1 (MetaCons "TranslogFSType" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 FSType))) (C1 (MetaCons "IndexCompoundFormat" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CompoundFormat)))) ((:+:) (C1 (MetaCons "IndexCompoundOnFlush" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool))) (C1 (MetaCons "WarmerEnabled" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool))))))))

data IndexSettingsSummary Source #

data AllocationPolicy Source #

Constructors

AllocAll

Allows shard allocation for all shards.

AllocPrimaries

Allows shard allocation only for primary shards.

AllocNewPrimaries

Allows shard allocation only for primary shards for new indices.

AllocNone

No shard allocation is allowed

data ReplicaBounds Source #

Instances

Eq ReplicaBounds Source # 
Read ReplicaBounds Source # 
Show ReplicaBounds Source # 
Generic ReplicaBounds Source # 

Associated Types

type Rep ReplicaBounds :: * -> * #

ToJSON ReplicaBounds Source # 
FromJSON ReplicaBounds Source # 
type Rep ReplicaBounds Source # 
type Rep ReplicaBounds = D1 (MetaData "ReplicaBounds" "Database.V1.Bloodhound.Types" "bloodhound-0.15.0.0-CuLLpCTgKxzBYrnesXL2n1" False) ((:+:) (C1 (MetaCons "ReplicasBounded" PrefixI False) ((:*:) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))) ((:+:) (C1 (MetaCons "ReplicasLowerBounded" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int))) (C1 (MetaCons "ReplicasUnbounded" PrefixI False) U1)))

newtype Bytes Source #

A measure of bytes used for various configurations. You may want to use smart constructors like gigabytes for larger values.

>>> gigabytes 9
Bytes 9000000000
>>> megabytes 9
Bytes 9000000
>>> kilobytes 9
Bytes 9000

Constructors

Bytes Int 

Instances

Eq Bytes Source # 

Methods

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

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

Ord Bytes Source # 

Methods

compare :: Bytes -> Bytes -> Ordering #

(<) :: Bytes -> Bytes -> Bool #

(<=) :: Bytes -> Bytes -> Bool #

(>) :: Bytes -> Bytes -> Bool #

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

max :: Bytes -> Bytes -> Bytes #

min :: Bytes -> Bytes -> Bytes #

Read Bytes Source # 
Show Bytes Source # 

Methods

showsPrec :: Int -> Bytes -> ShowS #

show :: Bytes -> String #

showList :: [Bytes] -> ShowS #

Generic Bytes Source # 

Associated Types

type Rep Bytes :: * -> * #

Methods

from :: Bytes -> Rep Bytes x #

to :: Rep Bytes x -> Bytes #

ToJSON Bytes Source # 
FromJSON Bytes Source # 
type Rep Bytes Source # 
type Rep Bytes = D1 (MetaData "Bytes" "Database.V1.Bloodhound.Types" "bloodhound-0.15.0.0-CuLLpCTgKxzBYrnesXL2n1" True) (C1 (MetaCons "Bytes" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

data FSType Source #

Constructors

FSSimple 
FSBuffered 

Instances

Eq FSType Source # 

Methods

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

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

Ord FSType Source # 
Read FSType Source # 
Show FSType Source # 
Generic FSType Source # 

Associated Types

type Rep FSType :: * -> * #

Methods

from :: FSType -> Rep FSType x #

to :: Rep FSType x -> FSType #

ToJSON FSType Source # 
FromJSON FSType Source # 
type Rep FSType Source # 
type Rep FSType = D1 (MetaData "FSType" "Database.V1.Bloodhound.Types" "bloodhound-0.15.0.0-CuLLpCTgKxzBYrnesXL2n1" False) ((:+:) (C1 (MetaCons "FSSimple" PrefixI False) U1) (C1 (MetaCons "FSBuffered" PrefixI False) U1))

data InitialShardCount Source #

Instances

Eq InitialShardCount Source # 
Read InitialShardCount Source # 
Show InitialShardCount Source # 
Generic InitialShardCount Source # 
ToJSON InitialShardCount Source # 
FromJSON InitialShardCount Source # 
type Rep InitialShardCount Source # 
type Rep InitialShardCount = D1 (MetaData "InitialShardCount" "Database.V1.Bloodhound.Types" "bloodhound-0.15.0.0-CuLLpCTgKxzBYrnesXL2n1" False) ((:+:) ((:+:) (C1 (MetaCons "QuorumShards" PrefixI False) U1) (C1 (MetaCons "QuorumMinus1Shards" PrefixI False) U1)) ((:+:) (C1 (MetaCons "FullShards" PrefixI False) U1) ((:+:) (C1 (MetaCons "FullMinus1Shards" PrefixI False) U1) (C1 (MetaCons "ExplicitShards" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int))))))

data NodeAttrFilter Source #

Instances

Eq NodeAttrFilter Source # 
Ord NodeAttrFilter Source # 
Read NodeAttrFilter Source # 
Show NodeAttrFilter Source # 
Generic NodeAttrFilter Source # 

Associated Types

type Rep NodeAttrFilter :: * -> * #

type Rep NodeAttrFilter Source # 
type Rep NodeAttrFilter = D1 (MetaData "NodeAttrFilter" "Database.V1.Bloodhound.Types" "bloodhound-0.15.0.0-CuLLpCTgKxzBYrnesXL2n1" False) (C1 (MetaCons "NodeAttrFilter" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "nodeAttrFilterName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 NodeAttrName)) (S1 (MetaSel (Just Symbol "nodeAttrFilterValues") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (NonEmpty Text)))))

data CompoundFormat Source #

Constructors

CompoundFileFormat Bool 
MergeSegmentVsTotalIndex Double

percentage between 0 and 1 where 0 is false, 1 is true

Instances

Eq CompoundFormat Source # 
Read CompoundFormat Source # 
Show CompoundFormat Source # 
Generic CompoundFormat Source # 

Associated Types

type Rep CompoundFormat :: * -> * #

ToJSON CompoundFormat Source # 
FromJSON CompoundFormat Source # 
type Rep CompoundFormat Source # 
type Rep CompoundFormat = D1 (MetaData "CompoundFormat" "Database.V1.Bloodhound.Types" "bloodhound-0.15.0.0-CuLLpCTgKxzBYrnesXL2n1" False) ((:+:) (C1 (MetaCons "CompoundFileFormat" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool))) (C1 (MetaCons "MergeSegmentVsTotalIndex" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Double))))

data IndexTemplate Source #

An IndexTemplate defines a template that will automatically be applied to new indices created. The templates include both IndexSettings and mappings, and a simple TemplatePattern that controls if the template will be applied to the index created. Specify mappings as follows: [toJSON TweetMapping, ...]

https://www.elastic.co/guide/en/elasticsearch/reference/1.7/indices-templates.html

newtype Server Source #

Server is used with the client functions to point at the ES instance

Constructors

Server Text 

Instances

Eq Server Source # 

Methods

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

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

Show Server Source # 
Generic Server Source # 

Associated Types

type Rep Server :: * -> * #

Methods

from :: Server -> Rep Server x #

to :: Rep Server x -> Server #

FromJSON Server Source # 
type Rep Server Source # 
type Rep Server = D1 (MetaData "Server" "Database.V1.Bloodhound.Types.Internal" "bloodhound-0.15.0.0-CuLLpCTgKxzBYrnesXL2n1" True) (C1 (MetaCons "Server" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

type Reply = Response ByteString Source #

Reply and Method are type synonyms from Method

data EsResult a Source #

EsResult describes the standard wrapper JSON document that you see in successful Elasticsearch lookups or lookups that couldn't find the document.

Constructors

EsResult 

Instances

Eq a => Eq (EsResult a) Source # 

Methods

(==) :: EsResult a -> EsResult a -> Bool #

(/=) :: EsResult a -> EsResult a -> Bool #

Read a => Read (EsResult a) Source # 
Show a => Show (EsResult a) Source # 

Methods

showsPrec :: Int -> EsResult a -> ShowS #

show :: EsResult a -> String #

showList :: [EsResult a] -> ShowS #

Generic (EsResult a) Source # 

Associated Types

type Rep (EsResult a) :: * -> * #

Methods

from :: EsResult a -> Rep (EsResult a) x #

to :: Rep (EsResult a) x -> EsResult a #

FromJSON a => FromJSON (EsResult a) Source # 
type Rep (EsResult a) Source # 

data EsResultFound a Source #

EsResultFound contains the document and its metadata inside of an EsResult when the document was successfully found.

Constructors

EsResultFound 

Fields

Instances

data EsError Source #

EsError is the generic type that will be returned when there was a problem. If you can't parse the expected response, its a good idea to try parsing this.

Constructors

EsError 

Instances

Eq EsError Source # 

Methods

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

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

Read EsError Source # 
Show EsError Source # 
Generic EsError Source # 

Associated Types

type Rep EsError :: * -> * #

Methods

from :: EsError -> Rep EsError x #

to :: Rep EsError x -> EsError #

FromJSON EsError Source # 
type Rep EsError Source # 
type Rep EsError = D1 (MetaData "EsError" "Database.V1.Bloodhound.Types" "bloodhound-0.15.0.0-CuLLpCTgKxzBYrnesXL2n1" False) (C1 (MetaCons "EsError" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "errorStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) (S1 (MetaSel (Just Symbol "errorMessage") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))))

data EsProtocolException Source #

EsProtocolException will be thrown if Bloodhound cannot parse a response returned by the ElasticSearch server. If you encounter this error, please verify that your domain data types and FromJSON instances are working properly (for example, the a of '[Hit a]' in 'SearchResult.searchHits.hits'). If you're sure that your mappings are correct, then this error may be an indication of an incompatibility between Bloodhound and ElasticSearch. Please open a bug report and be sure to include the exception body.

data IndexAliasAction Source #

Instances

Eq IndexAliasAction Source # 
Read IndexAliasAction Source # 
Show IndexAliasAction Source # 
Generic IndexAliasAction Source # 
ToJSON IndexAliasAction Source # 
type Rep IndexAliasAction Source # 

data IndexAliasCreate Source #

Instances

Eq IndexAliasCreate Source # 
Read IndexAliasCreate Source # 
Show IndexAliasCreate Source # 
Generic IndexAliasCreate Source # 
ToJSON IndexAliasCreate Source # 
FromJSON IndexAliasCreate Source # 
type Rep IndexAliasCreate Source # 
type Rep IndexAliasCreate = D1 (MetaData "IndexAliasCreate" "Database.V1.Bloodhound.Types" "bloodhound-0.15.0.0-CuLLpCTgKxzBYrnesXL2n1" False) (C1 (MetaCons "IndexAliasCreate" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "aliasCreateRouting") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe AliasRouting))) (S1 (MetaSel (Just Symbol "aliasCreateFilter") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Filter)))))

data AliasRouting Source #

Instances

Eq AliasRouting Source # 
Read AliasRouting Source # 
Show AliasRouting Source # 
Generic AliasRouting Source # 

Associated Types

type Rep AliasRouting :: * -> * #

ToJSON AliasRouting Source # 
FromJSON AliasRouting Source # 
type Rep AliasRouting Source # 

newtype SearchAliasRouting Source #

newtype IndexAliasRouting Source #

data DocVersion Source #

DocVersion is an integer version number for a document between 1 and 9.2e+18 used for .

Instances

Bounded DocVersion Source # 
Enum DocVersion Source # 
Eq DocVersion Source # 
Ord DocVersion Source # 
Read DocVersion Source # 
Show DocVersion Source # 
Generic DocVersion Source # 

Associated Types

type Rep DocVersion :: * -> * #

ToJSON DocVersion Source # 
FromJSON DocVersion Source # 
type Rep DocVersion Source # 
type Rep DocVersion = D1 (MetaData "DocVersion" "Database.V1.Bloodhound.Types" "bloodhound-0.15.0.0-CuLLpCTgKxzBYrnesXL2n1" True) (C1 (MetaCons "DocVersion" PrefixI True) (S1 (MetaSel (Just Symbol "docVersionNumber") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

newtype ExternalDocVersion Source #

ExternalDocVersion is a convenience wrapper if your code uses its own version numbers instead of ones from ES.

Instances

Bounded ExternalDocVersion Source # 
Enum ExternalDocVersion Source # 
Eq ExternalDocVersion Source # 
Ord ExternalDocVersion Source # 
Read ExternalDocVersion Source # 
Show ExternalDocVersion Source # 
Generic ExternalDocVersion Source # 
ToJSON ExternalDocVersion Source # 
type Rep ExternalDocVersion Source # 
type Rep ExternalDocVersion = D1 (MetaData "ExternalDocVersion" "Database.V1.Bloodhound.Types" "bloodhound-0.15.0.0-CuLLpCTgKxzBYrnesXL2n1" True) (C1 (MetaCons "ExternalDocVersion" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 DocVersion)))

data VersionControl Source #

VersionControl is specified when indexing documents as a optimistic concurrency control.

Constructors

NoVersionControl

Don't send a version. This is a pure overwrite.

InternalVersion DocVersion

Use the default ES versioning scheme. Only index the document if the version is the same as the one specified. Only applicable to updates, as you should be getting Version from a search result.

ExternalGT ExternalDocVersion

Use your own version numbering. Only index the document if the version is strictly higher OR the document doesn't exist. The given version will be used as the new version number for the stored document. N.B. All updates must increment this number, meaning there is some global, external ordering of updates.

ExternalGTE ExternalDocVersion

Use your own version numbering. Only index the document if the version is equal or higher than the stored version. Will succeed if there is no existing document. The given version will be used as the new version number for the stored document. Use with care, as this could result in data loss.

ForceVersion ExternalDocVersion

The document will always be indexed and the given version will be the new version. This is typically used for correcting errors. Use with care, as this could result in data loss.

Instances

Eq VersionControl Source # 
Ord VersionControl Source # 
Read VersionControl Source # 
Show VersionControl Source # 
Generic VersionControl Source # 

Associated Types

type Rep VersionControl :: * -> * #

type Rep VersionControl Source # 

data IndexDocumentSettings Source #

IndexDocumentSettings are special settings supplied when indexing a document. For the best backwards compatiblity when new fields are added, you should probably prefer to start with defaultIndexDocumentSettings

data Query Source #

Instances

Eq Query Source # 

Methods

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

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

Read Query Source # 
Show Query Source # 

Methods

showsPrec :: Int -> Query -> ShowS #

show :: Query -> String #

showList :: [Query] -> ShowS #

Generic Query Source # 

Associated Types

type Rep Query :: * -> * #

Methods

from :: Query -> Rep Query x #

to :: Rep Query x -> Query #

ToJSON Query Source # 
FromJSON Query Source # 
type Rep Query Source # 
type Rep Query = D1 (MetaData "Query" "Database.V1.Bloodhound.Types" "bloodhound-0.15.0.0-CuLLpCTgKxzBYrnesXL2n1" False) ((:+:) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "TermQuery" PrefixI False) ((:*:) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Term)) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Boost))))) ((:+:) (C1 (MetaCons "TermsQuery" PrefixI False) ((:*:) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (NonEmpty Text))))) (C1 (MetaCons "QueryMatchQuery" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 MatchQuery))))) ((:+:) ((:+:) (C1 (MetaCons "QueryMultiMatchQuery" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 MultiMatchQuery))) (C1 (MetaCons "QueryBoolQuery" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 BoolQuery)))) ((:+:) (C1 (MetaCons "QueryBoostingQuery" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 BoostingQuery))) (C1 (MetaCons "QueryCommonTermsQuery" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CommonTermsQuery)))))) ((:+:) ((:+:) (C1 (MetaCons "ConstantScoreFilter" PrefixI False) ((:*:) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Filter)) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Boost)))) ((:+:) (C1 (MetaCons "ConstantScoreQuery" PrefixI False) ((:*:) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Query)) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Boost)))) (C1 (MetaCons "QueryDisMaxQuery" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 DisMaxQuery))))) ((:+:) ((:+:) (C1 (MetaCons "QueryFilteredQuery" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 FilteredQuery))) (C1 (MetaCons "QueryFuzzyLikeThisQuery" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 FuzzyLikeThisQuery)))) ((:+:) (C1 (MetaCons "QueryFuzzyLikeFieldQuery" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 FuzzyLikeFieldQuery))) (C1 (MetaCons "QueryFuzzyQuery" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 FuzzyQuery))))))) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "QueryHasChildQuery" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 HasChildQuery))) ((:+:) (C1 (MetaCons "QueryHasParentQuery" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 HasParentQuery))) (C1 (MetaCons "IdsQuery" PrefixI False) ((:*:) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 MappingName)) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [DocId])))))) ((:+:) ((:+:) (C1 (MetaCons "QueryIndicesQuery" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 IndicesQuery))) (C1 (MetaCons "MatchAllQuery" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Boost))))) ((:+:) (C1 (MetaCons "QueryMoreLikeThisQuery" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 MoreLikeThisQuery))) (C1 (MetaCons "QueryMoreLikeThisFieldQuery" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 MoreLikeThisFieldQuery)))))) ((:+:) ((:+:) (C1 (MetaCons "QueryNestedQuery" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 NestedQuery))) ((:+:) (C1 (MetaCons "QueryPrefixQuery" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PrefixQuery))) (C1 (MetaCons "QueryQueryStringQuery" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 QueryStringQuery))))) ((:+:) ((:+:) (C1 (MetaCons "QuerySimpleQueryStringQuery" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 SimpleQueryStringQuery))) (C1 (MetaCons "QueryRangeQuery" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 RangeQuery)))) ((:+:) (C1 (MetaCons "QueryRegexpQuery" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 RegexpQuery))) (C1 (MetaCons "QueryTemplateQueryInline" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 TemplateQueryInline))))))))

data Search Source #

Constructors

Search 

Instances

Eq Search Source # 

Methods

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

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

Read Search Source # 
Show Search Source # 
Generic Search Source # 

Associated Types

type Rep Search :: * -> * #

Methods

from :: Search -> Rep Search x #

to :: Rep Search x -> Search #

ToJSON Search Source # 
type Rep Search Source # 
type Rep Search = D1 (MetaData "Search" "Database.V1.Bloodhound.Types" "bloodhound-0.15.0.0-CuLLpCTgKxzBYrnesXL2n1" False) (C1 (MetaCons "Search" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "queryBody") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Query))) ((:*:) (S1 (MetaSel (Just Symbol "filterBody") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Filter))) (S1 (MetaSel (Just Symbol "sortBody") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Sort))))) ((:*:) (S1 (MetaSel (Just Symbol "aggBody") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Aggregations))) ((:*:) (S1 (MetaSel (Just Symbol "highlight") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Highlights))) (S1 (MetaSel (Just Symbol "trackSortScores") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 TrackSortScores))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "from") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 From)) ((:*:) (S1 (MetaSel (Just Symbol "size") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Size)) (S1 (MetaSel (Just Symbol "searchType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 SearchType)))) ((:*:) (S1 (MetaSel (Just Symbol "fields") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [FieldName]))) ((:*:) (S1 (MetaSel (Just Symbol "source") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Source))) (S1 (MetaSel (Just Symbol "suggestBody") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Suggest))))))))

data SearchType Source #

Instances

Eq SearchType Source # 
Read SearchType Source # 
Show SearchType Source # 
Generic SearchType Source # 

Associated Types

type Rep SearchType :: * -> * #

type Rep SearchType Source # 
type Rep SearchType = D1 (MetaData "SearchType" "Database.V1.Bloodhound.Types" "bloodhound-0.15.0.0-CuLLpCTgKxzBYrnesXL2n1" False) ((:+:) ((:+:) (C1 (MetaCons "SearchTypeQueryThenFetch" PrefixI False) U1) ((:+:) (C1 (MetaCons "SearchTypeDfsQueryThenFetch" PrefixI False) U1) (C1 (MetaCons "SearchTypeCount" PrefixI False) U1))) ((:+:) (C1 (MetaCons "SearchTypeScan" PrefixI False) U1) ((:+:) (C1 (MetaCons "SearchTypeQueryAndFetch" PrefixI False) U1) (C1 (MetaCons "SearchTypeDfsQueryAndFetch" PrefixI False) U1))))

data SearchResult a Source #

Constructors

SearchResult 

Fields

Instances

Eq a => Eq (SearchResult a) Source # 
Read a => Read (SearchResult a) Source # 
Show a => Show (SearchResult a) Source # 
Generic (SearchResult a) Source # 

Associated Types

type Rep (SearchResult a) :: * -> * #

Methods

from :: SearchResult a -> Rep (SearchResult a) x #

to :: Rep (SearchResult a) x -> SearchResult a #

FromJSON a => FromJSON (SearchResult a) Source # 
type Rep (SearchResult a) Source # 

newtype ScrollId Source #

Constructors

ScrollId Text 

data SearchHits a Source #

Constructors

SearchHits 

Fields

Instances

Eq a => Eq (SearchHits a) Source # 

Methods

(==) :: SearchHits a -> SearchHits a -> Bool #

(/=) :: SearchHits a -> SearchHits a -> Bool #

Read a => Read (SearchHits a) Source # 
Show a => Show (SearchHits a) Source # 
Generic (SearchHits a) Source # 

Associated Types

type Rep (SearchHits a) :: * -> * #

Methods

from :: SearchHits a -> Rep (SearchHits a) x #

to :: Rep (SearchHits a) x -> SearchHits a #

Semigroup (SearchHits a) Source # 
Monoid (SearchHits a) Source # 
FromJSON a => FromJSON (SearchHits a) Source # 
type Rep (SearchHits a) Source # 
type Rep (SearchHits a) = D1 (MetaData "SearchHits" "Database.V1.Bloodhound.Types" "bloodhound-0.15.0.0-CuLLpCTgKxzBYrnesXL2n1" False) (C1 (MetaCons "SearchHits" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "hitsTotal") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) ((:*:) (S1 (MetaSel (Just Symbol "maxScore") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Score)) (S1 (MetaSel (Just Symbol "hits") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Hit a])))))

newtype From Source #

Constructors

From Int 

Instances

Eq From Source # 

Methods

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

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

Read From Source # 
Show From Source # 

Methods

showsPrec :: Int -> From -> ShowS #

show :: From -> String #

showList :: [From] -> ShowS #

Generic From Source # 

Associated Types

type Rep From :: * -> * #

Methods

from :: From -> Rep From x #

to :: Rep From x -> From #

ToJSON From Source # 
type Rep From Source # 
type Rep From = D1 (MetaData "From" "Database.V1.Bloodhound.Types" "bloodhound-0.15.0.0-CuLLpCTgKxzBYrnesXL2n1" True) (C1 (MetaCons "From" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

newtype Size Source #

Constructors

Size Int 

Instances

Eq Size Source # 

Methods

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

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

Read Size Source # 
Show Size Source # 

Methods

showsPrec :: Int -> Size -> ShowS #

show :: Size -> String #

showList :: [Size] -> ShowS #

Generic Size Source # 

Associated Types

type Rep Size :: * -> * #

Methods

from :: Size -> Rep Size x #

to :: Rep Size x -> Size #

ToJSON Size Source # 
FromJSON Size Source # 
type Rep Size Source # 
type Rep Size = D1 (MetaData "Size" "Database.V1.Bloodhound.Types" "bloodhound-0.15.0.0-CuLLpCTgKxzBYrnesXL2n1" True) (C1 (MetaCons "Size" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

data PatternOrPatterns Source #

data Include Source #

Constructors

Include [Pattern] 

Instances

data Exclude Source #

Constructors

Exclude [Pattern] 

Instances

newtype Pattern Source #

Constructors

Pattern Text 

Instances