bloodhound-0.19.0.0: Elasticsearch client library for Haskell
Copyright(C) 2014 2018 Chris Allen
LicenseBSD-style (see the file LICENSE)
MaintainerChris Allen <cma@bitemyapp.com
Stabilityprovisional
PortabilityRecordWildCards
Safe HaskellNone
LanguageHaskell2010

Database.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

Instances details
MonadTrans BH Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

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

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

Defined in Database.Bloodhound.Internal.Client

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 #

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

Defined in Database.Bloodhound.Internal.Client

Methods

get :: BH m s #

put :: s -> BH m () #

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

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

Defined in Database.Bloodhound.Internal.Client

Methods

ask :: BH m r #

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

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

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

Defined in Database.Bloodhound.Internal.Client

Methods

throwError :: e -> BH m a #

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

Monad m => Monad (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

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 #

Functor m => Functor (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

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

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

MonadFix m => MonadFix (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

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

MonadFail m => MonadFail (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

fail :: String -> BH m a #

Applicative m => Applicative (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

pure :: a -> BH m a #

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

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

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

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

Alternative m => Alternative (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

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 # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

mzero :: BH m a #

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

MonadIO m => MonadIO (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

liftIO :: IO a -> BH m a #

MonadThrow m => MonadThrow (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

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

MonadCatch m => MonadCatch (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

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

MonadMask m => MonadMask (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

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 #

generalBracket :: BH m a -> (a -> ExitCase b -> BH m c) -> (a -> BH m b) -> BH m (b, c) #

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

Defined in Database.Bloodhound.Internal.Client

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.

Instances

Instances details
(Functor m, Applicative m, MonadIO m) => MonadBH (ReaderT BHEnv m) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

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.

Methods

getBHEnv :: m BHEnv Source #

Instances

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

Defined in Database.Bloodhound.Internal.Client

Methods

getBHEnv :: BH m BHEnv Source #

(Functor m, Applicative m, MonadIO m) => MonadBH (ReaderT BHEnv m) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

newtype MaybeNA a Source #

Constructors

MaybeNA 

Fields

Instances

Instances details
Eq a => Eq (MaybeNA a) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Newtypes

Methods

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

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

Show a => Show (MaybeNA a) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Newtypes

Methods

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

show :: MaybeNA a -> String #

showList :: [MaybeNA a] -> ShowS #

FromJSON a => FromJSON (MaybeNA a) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Newtypes

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 

Instances

Instances details
Eq Status Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

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

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

Show Status Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

FromJSON Status Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

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 
CompressionSetting Compression 
IndexCompoundFormat CompoundFormat 
IndexCompoundOnFlush Bool 
WarmerEnabled Bool 
MappingTotalFieldsLimit Int 
AnalysisSetting Analysis

Analysis is not a dynamic setting and can only be performed on a closed index.

UnassignedNodeLeftDelayedTimeout NominalDiffTime

Sets a delay to the allocation of replica shards which become unassigned because a node has left, giving them chance to return. See https://www.elastic.co/guide/en/elasticsearch/reference/5.6/delayed-allocation.html

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 Compression Source #

Constructors

CompressionDefault

Compress with LZ4

CompressionBest

Compress with DEFLATE. Elastic blogs that this can reduce disk use by 15%-25%.

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

Instances details
Eq Bytes Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

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

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

Ord Bytes Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

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 #

Show Bytes Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

showsPrec :: Int -> Bytes -> ShowS #

show :: Bytes -> String #

showList :: [Bytes] -> ShowS #

ToJSON Bytes Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

FromJSON Bytes Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

data FSType Source #

Constructors

FSSimple 
FSBuffered 

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 IndexPattern 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

Instances details
Eq Server Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

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

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

Show Server Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

FromJSON Server Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Reply = Response LByteString 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

Instances details
Eq a => Eq (EsResult a) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

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

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

Show a => Show (EsResult a) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

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

show :: EsResult a -> String #

showList :: [EsResult a] -> ShowS #

FromJSON a => FromJSON (EsResult a) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

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

Instances details
Eq a => Eq (EsResultFound a) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Show a => Show (EsResultFound a) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

FromJSON a => FromJSON (EsResultFound a) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

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

Instances details
Eq EsError Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

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

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

Show EsError Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

FromJSON EsError Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

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.

Constructors

EsProtocolException 

Fields

data DocVersion Source #

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

Instances

Instances details
Bounded DocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Enum DocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Eq DocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Ord DocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Show DocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

ToJSON DocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

FromJSON DocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

newtype ExternalDocVersion Source #

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

Instances

Instances details
Bounded ExternalDocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Enum ExternalDocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Eq ExternalDocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Ord ExternalDocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Show ExternalDocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

ToJSON ExternalDocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

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.

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

Instances details
Eq Query Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

Methods

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

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

Show Query Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

Methods

showsPrec :: Int -> Query -> ShowS #

show :: Query -> String #

showList :: [Query] -> ShowS #

ToJSON Query Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

FromJSON Query Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

data Search Source #

Instances

Instances details
Eq Search Source # 
Instance details

Defined in Database.Bloodhound.Types

Methods

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

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

Show Search Source # 
Instance details

Defined in Database.Bloodhound.Types

ToJSON Search Source # 
Instance details

Defined in Database.Bloodhound.Types

data SearchResult a Source #

Constructors

SearchResult 

Fields

Instances

Instances details
Eq a => Eq (SearchResult a) Source # 
Instance details

Defined in Database.Bloodhound.Types

Show a => Show (SearchResult a) Source # 
Instance details

Defined in Database.Bloodhound.Types

FromJSON a => FromJSON (SearchResult a) Source # 
Instance details

Defined in Database.Bloodhound.Types

data SearchHits a Source #

Constructors

SearchHits 

Fields

newtype From Source #

Constructors

From Int 

Instances

Instances details
Eq From Source # 
Instance details

Defined in Database.Bloodhound.Internal.Newtypes

Methods

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

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

Show From Source # 
Instance details

Defined in Database.Bloodhound.Internal.Newtypes

Methods

showsPrec :: Int -> From -> ShowS #

show :: From -> String #

showList :: [From] -> ShowS #

ToJSON From Source # 
Instance details

Defined in Database.Bloodhound.Internal.Newtypes

newtype Size Source #

Constructors

Size Int 

Instances

Instances details
Eq Size Source # 
Instance details

Defined in Database.Bloodhound.Internal.Newtypes

Methods

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

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

Show Size Source # 
Instance details

Defined in Database.Bloodhound.Internal.Newtypes

Methods

showsPrec :: Int -> Size -> ShowS #

show :: Size -> String #

showList :: [Size] -> ShowS #

ToJSON Size Source # 
Instance details

Defined in Database.Bloodhound.Internal.Newtypes

FromJSON Size Source # 
Instance details

Defined in Database.Bloodhound.Internal.Newtypes

data Source Source #

Instances

Instances details
Eq Source Source # 
Instance details

Defined in Database.Bloodhound.Types

Methods

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

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

Show Source Source # 
Instance details

Defined in Database.Bloodhound.Types

ToJSON Source Source # 
Instance details

Defined in Database.Bloodhound.Types

data Include Source #

Constructors

Include [Pattern] 

Instances

Instances details
Eq Include Source # 
Instance details

Defined in Database.Bloodhound.Types

Methods

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

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

Read Include Source # 
Instance details

Defined in Database.Bloodhound.Types

Show Include Source # 
Instance details

Defined in Database.Bloodhound.Types

ToJSON Include Source # 
Instance details

Defined in Database.Bloodhound.Types

data Exclude Source #

Constructors

Exclude [Pattern] 

Instances

Instances details
Eq Exclude Source # 
Instance details

Defined in Database.Bloodhound.Types

Methods

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

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

Read Exclude Source # 
Instance details

Defined in Database.Bloodhound.Types

Show Exclude Source # 
Instance details

Defined in Database.Bloodhound.Types

ToJSON Exclude Source # 
Instance details

Defined in Database.Bloodhound.Types

newtype Pattern Source #

Constructors

Pattern Text 

Instances

Instances details
Eq Pattern Source # 
Instance details

Defined in Database.Bloodhound.Types

Methods

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

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

Read Pattern Source # 
Instance details

Defined in Database.Bloodhound.Types

Show Pattern Source # 
Instance details

Defined in Database.Bloodhound.Types

ToJSON Pattern Source # 
Instance details

Defined in Database.Bloodhound.Types

data Hit a Source #

Instances

Instances details
Eq a => Eq (Hit a) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Aggregation

Methods

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

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

Show a => Show (Hit a) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Aggregation

Methods

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

show :: Hit a -> String #

showList :: [Hit a] -> ShowS #

FromJSON a => FromJSON (Hit a) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Aggregation

Methods

parseJSON :: Value -> Parser (Hit a) #

parseJSONList :: Value -> Parser [Hit a] #

newtype Filter Source #

As of Elastic 2.0, Filters are just Queries housed in a Bool Query, and flagged in a different context.

Constructors

Filter 

Fields

Instances

Instances details
Eq Filter Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

Methods

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

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

Show Filter Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

ToJSON Filter Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

FromJSON Filter Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

data Term Source #

Constructors

Term 

Fields

Instances

Instances details
Eq Term Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

Methods

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

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

Show Term Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

Methods

showsPrec :: Int -> Term -> ShowS #

show :: Term -> String #

showList :: [Term] -> ShowS #

ToJSON Term Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

FromJSON Term Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

data GeoPoint Source #

Constructors

GeoPoint 

data LatLon Source #

Constructors

LatLon 

Fields

Instances

Instances details
Eq LatLon Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

Methods

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

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

Show LatLon Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

ToJSON LatLon Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

FromJSON LatLon Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

newtype LessThan Source #

Constructors

LessThan Double 

Instances

Instances details
Eq LessThan Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

Show LessThan Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

newtype LessThanEq Source #

Constructors

LessThanEq Double 

Instances

Instances details
Eq LessThanEq Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

Show LessThanEq Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

newtype GreaterThan Source #

Constructors

GreaterThan Double 

Instances

Instances details
Eq GreaterThan Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

Show GreaterThan Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

newtype LessThanD Source #

Constructors

LessThanD UTCTime 

Instances

Instances details
Eq LessThanD Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

Show LessThanD Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

newtype LessThanEqD Source #

Constructors

LessThanEqD UTCTime 

Instances

Instances details
Eq LessThanEqD Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

Show LessThanEqD Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

newtype Regexp Source #

Constructors

Regexp Text 

Instances

Instances details
Eq Regexp Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

Methods

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

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

Show Regexp Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

FromJSON Regexp Source # 
Instance details

Defined in Database.Bloodhound.Internal.Query

newtype FieldName Source #

FieldName is used all over the place wherever a specific field within a document needs to be specified, usually in Querys or Filters.

Constructors

FieldName Text