bloodhound-0.23.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
PortabilityGHC
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

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 

data TaskResponse a Source #

Instances

Instances details
FromJSON a => FromJSON (TaskResponse a) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Task

Generic (TaskResponse a) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Task

Associated Types

type Rep (TaskResponse a) :: Type -> Type #

Methods

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

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

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

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Task

Eq a => Eq (TaskResponse a) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Task

type Rep (TaskResponse a) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Task

type Rep (TaskResponse a) = D1 ('MetaData "TaskResponse" "Database.Bloodhound.Internal.Versions.Common.Types.Task" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "TaskResponse" 'PrefixI 'True) ((S1 ('MetaSel ('Just "taskResponseCompleted") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "taskResponseTask") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Task a))) :*: (S1 ('MetaSel ('Just "taskResponseReponse") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe a)) :*: S1 ('MetaSel ('Just "taskResponseError") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Object)))))

data Task a Source #

Instances

Instances details
FromJSON a => FromJSON (Task a) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Task

Generic (Task a) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Task

Associated Types

type Rep (Task a) :: Type -> Type #

Methods

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

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

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

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Task

Methods

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

show :: Task a -> String #

showList :: [Task a] -> ShowS #

Eq a => Eq (Task a) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Task

Methods

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

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

type Rep (Task a) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Task

type Rep (Task a) = D1 ('MetaData "Task" "Database.Bloodhound.Internal.Versions.Common.Types.Task" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "Task" 'PrefixI 'True) (((S1 ('MetaSel ('Just "taskNode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "taskId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "taskType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "taskAction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :*: ((S1 ('MetaSel ('Just "taskStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel ('Just "taskDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "taskStartTimeInMillis") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer) :*: (S1 ('MetaSel ('Just "taskRunningTimeInNanos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer) :*: S1 ('MetaSel ('Just "taskCancellable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))))

data Suggest Source #

Instances

Instances details
FromJSON Suggest Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

ToJSON Suggest Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

Generic Suggest Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

Associated Types

type Rep Suggest :: Type -> Type #

Methods

from :: Suggest -> Rep Suggest x #

to :: Rep Suggest x -> Suggest #

Show Suggest Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

Eq Suggest Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

Methods

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

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

type Rep Suggest Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

type Rep Suggest = D1 ('MetaData "Suggest" "Database.Bloodhound.Internal.Versions.Common.Types.Suggest" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "Suggest" 'PrefixI 'True) (S1 ('MetaSel ('Just "suggestText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "suggestName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "suggestType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SuggestType))))

data SuggestType Source #

Instances

Instances details
FromJSON SuggestType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

ToJSON SuggestType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

Generic SuggestType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

Associated Types

type Rep SuggestType :: Type -> Type #

Show SuggestType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

Eq SuggestType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

type Rep SuggestType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

type Rep SuggestType = D1 ('MetaData "SuggestType" "Database.Bloodhound.Internal.Versions.Common.Types.Suggest" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "SuggestTypePhraseSuggester" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PhraseSuggester)))

data PhraseSuggester Source #

Instances

Instances details
FromJSON PhraseSuggester Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

ToJSON PhraseSuggester Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

Generic PhraseSuggester Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

Associated Types

type Rep PhraseSuggester :: Type -> Type #

Show PhraseSuggester Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

Eq PhraseSuggester Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

type Rep PhraseSuggester Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

type Rep PhraseSuggester = D1 ('MetaData "PhraseSuggester" "Database.Bloodhound.Internal.Versions.Common.Types.Suggest" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "PhraseSuggester" 'PrefixI 'True) (((S1 ('MetaSel ('Just "phraseSuggesterField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FieldName) :*: (S1 ('MetaSel ('Just "phraseSuggesterGramSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "phraseSuggesterRealWordErrorLikelihood") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)))) :*: (S1 ('MetaSel ('Just "phraseSuggesterConfidence") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "phraseSuggesterMaxErrors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "phraseSuggesterSeparator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "phraseSuggesterSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Size)) :*: (S1 ('MetaSel ('Just "phraseSuggesterAnalyzer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Analyzer)) :*: S1 ('MetaSel ('Just "phraseSuggesterShardSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)))) :*: (S1 ('MetaSel ('Just "phraseSuggesterHighlight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PhraseSuggesterHighlighter)) :*: (S1 ('MetaSel ('Just "phraseSuggesterCollate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PhraseSuggesterCollate)) :*: S1 ('MetaSel ('Just "phraseSuggesterCandidateGenerators") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [DirectGenerators]))))))

data PhraseSuggesterHighlighter Source #

Instances

Instances details
FromJSON PhraseSuggesterHighlighter Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

ToJSON PhraseSuggesterHighlighter Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

Generic PhraseSuggesterHighlighter Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

Associated Types

type Rep PhraseSuggesterHighlighter :: Type -> Type #

Show PhraseSuggesterHighlighter Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

Eq PhraseSuggesterHighlighter Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

type Rep PhraseSuggesterHighlighter Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

type Rep PhraseSuggesterHighlighter = D1 ('MetaData "PhraseSuggesterHighlighter" "Database.Bloodhound.Internal.Versions.Common.Types.Suggest" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "PhraseSuggesterHighlighter" 'PrefixI 'True) (S1 ('MetaSel ('Just "phraseSuggesterHighlighterPreTag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "phraseSuggesterHighlighterPostTag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data PhraseSuggesterCollate Source #

Instances

Instances details
FromJSON PhraseSuggesterCollate Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

ToJSON PhraseSuggesterCollate Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

Generic PhraseSuggesterCollate Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

Associated Types

type Rep PhraseSuggesterCollate :: Type -> Type #

Show PhraseSuggesterCollate Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

Eq PhraseSuggesterCollate Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

type Rep PhraseSuggesterCollate Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

type Rep PhraseSuggesterCollate = D1 ('MetaData "PhraseSuggesterCollate" "Database.Bloodhound.Internal.Versions.Common.Types.Suggest" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "PhraseSuggesterCollate" 'PrefixI 'True) (S1 ('MetaSel ('Just "phraseSuggesterCollateTemplateQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Query) :*: (S1 ('MetaSel ('Just "phraseSuggesterCollateParams") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TemplateQueryKeyValuePairs) :*: S1 ('MetaSel ('Just "phraseSuggesterCollatePrune") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))

data DirectGeneratorSuggestModeTypes Source #

Instances

Instances details
FromJSON DirectGeneratorSuggestModeTypes Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

ToJSON DirectGeneratorSuggestModeTypes Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

Generic DirectGeneratorSuggestModeTypes Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

Associated Types

type Rep DirectGeneratorSuggestModeTypes :: Type -> Type #

Show DirectGeneratorSuggestModeTypes Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

Eq DirectGeneratorSuggestModeTypes Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

type Rep DirectGeneratorSuggestModeTypes Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

type Rep DirectGeneratorSuggestModeTypes = D1 ('MetaData "DirectGeneratorSuggestModeTypes" "Database.Bloodhound.Internal.Versions.Common.Types.Suggest" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "DirectGeneratorSuggestModeMissing" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "DirectGeneratorSuggestModePopular" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DirectGeneratorSuggestModeAlways" 'PrefixI 'False) (U1 :: Type -> Type)))

data DirectGenerators Source #

Instances

Instances details
FromJSON DirectGenerators Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

ToJSON DirectGenerators Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

Generic DirectGenerators Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

Associated Types

type Rep DirectGenerators :: Type -> Type #

Show DirectGenerators Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

Eq DirectGenerators Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

type Rep DirectGenerators Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Suggest

type Rep DirectGenerators = D1 ('MetaData "DirectGenerators" "Database.Bloodhound.Internal.Versions.Common.Types.Suggest" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "DirectGenerators" 'PrefixI 'True) (((S1 ('MetaSel ('Just "directGeneratorsField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FieldName) :*: S1 ('MetaSel ('Just "directGeneratorsSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "directGeneratorSuggestMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DirectGeneratorSuggestModeTypes) :*: (S1 ('MetaSel ('Just "directGeneratorMaxEdits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "directGeneratorPrefixLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))))) :*: ((S1 ('MetaSel ('Just "directGeneratorMinWordLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "directGeneratorMaxInspections") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "directGeneratorMinDocFreq") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)))) :*: (S1 ('MetaSel ('Just "directGeneratorMaxTermFreq") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)) :*: (S1 ('MetaSel ('Just "directGeneratorPreFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "directGeneratorPostFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))))))

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.elastic.co/guide/en/elasticsearch/reference/current/search-request-sort.html#search-request-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.elastic.co/guide/en/elasticsearch/reference/current/search-request-sort.html#_missing_values

data FsSnapshotRepo Source #

A filesystem-based snapshot repo that ships with Elasticsearch. This is an instance of SnapshotRepo so it can be used with updateSnapshotRepo

Constructors

FsSnapshotRepo 

Fields

Instances

Instances details
Generic FsSnapshotRepo Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

Associated Types

type Rep FsSnapshotRepo :: Type -> Type #

Show FsSnapshotRepo Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

SnapshotRepo FsSnapshotRepo Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

Eq FsSnapshotRepo Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

type Rep FsSnapshotRepo Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

type Rep FsSnapshotRepo = D1 ('MetaData "FsSnapshotRepo" "Database.Bloodhound.Internal.Versions.Common.Types.Snapshots" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "FsSnapshotRepo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "fsrName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SnapshotRepoName) :*: (S1 ('MetaSel ('Just "fsrLocation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: S1 ('MetaSel ('Just "fsrCompressMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: (S1 ('MetaSel ('Just "fsrChunkSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bytes)) :*: (S1 ('MetaSel ('Just "fsrMaxRestoreBytesPerSec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bytes)) :*: S1 ('MetaSel ('Just "fsrMaxSnapshotBytesPerSec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bytes))))))

data GenericSnapshotRepo Source #

A generic representation of a snapshot repo. This is what gets sent to and parsed from the server. For repo types enabled by plugins that aren't exported by this library, consider making a custom type which implements SnapshotRepo. If it is a common repo type, consider submitting a pull request to have it included in the library proper

newtype GenericSnapshotRepoSettings Source #

Opaque representation of snapshot repo settings. Instances of SnapshotRepo will produce this.

newtype RestoreRenamePattern Source #

Regex-stype pattern, e.g. "index_(.+)" to match index names

Constructors

RestoreRenamePattern 

Fields

Instances

Instances details
ToJSON RestoreRenamePattern Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

Show RestoreRenamePattern Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

Eq RestoreRenamePattern Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

Ord RestoreRenamePattern Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

data RestoreRenameToken Source #

A single token in a index renaming scheme for a restore. These are concatenated into a string before being sent to Elasticsearch. Check out these Java docs to find out more if you're into that sort of thing.

Constructors

RRTLit Text

Just a literal string of characters

RRSubWholeMatch

Equivalent to $0. The entire matched pattern, not any subgroup

RRSubGroup RRGroupRefNum

A specific reference to a group number

data SnapshotCreateSettings Source #

Constructors

SnapshotCreateSettings 

Fields

  • snapWaitForCompletion :: Bool

    Should the API call return immediately after initializing the snapshot or wait until completed? Note that if this is enabled it could wait a long time, so you should adjust your ManagerSettings accordingly to set long timeouts or explicitly handle timeouts.

  • snapIndices :: Maybe IndexSelection

    Nothing will snapshot all indices. Just [] is permissable and will essentially be a no-op snapshot.

  • snapIgnoreUnavailable :: Bool

    If set to True, any matched indices that don't exist will be ignored. Otherwise it will be an error and fail.

  • snapIncludeGlobalState :: Bool
     
  • snapPartial :: Bool

    If some indices failed to snapshot (e.g. if not all primary shards are available), should the process proceed?

data SnapshotPattern Source #

Either specifies an exact snapshot name or one with globs in it, e.g. SnapPattern "foo*" NOTE: Patterns are not supported on ES < 1.7

newtype SnapshotRepoName Source #

The unique name of a snapshot repository.

Constructors

SnapshotRepoName 

Instances

Instances details
FromJSON SnapshotRepoName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

ToJSON SnapshotRepoName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

Show SnapshotRepoName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

Eq SnapshotRepoName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

Ord SnapshotRepoName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

data SnapshotRepoPattern Source #

Either specifies an exact repo name or one with globs in it, e.g. RepoPattern "foo*" NOTE: Patterns are not supported on ES < 1.7

newtype SnapshotRepoType Source #

Constructors

SnapshotRepoType 

Instances

Instances details
FromJSON SnapshotRepoType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

ToJSON SnapshotRepoType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

Show SnapshotRepoType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

Eq SnapshotRepoType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

Ord SnapshotRepoType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

newtype SnapshotRepoUpdateSettings Source #

Constructors

SnapshotRepoUpdateSettings 

Fields

  • repoUpdateVerify :: Bool

    After creation/update, synchronously check that nodes can write to this repo. Defaults to True. You may use False if you need a faster response and plan on verifying manually later with verifySnapshotRepo.

data SnapshotRestoreSettings Source #

Constructors

SnapshotRestoreSettings 

Fields

defaultSnapshotCreateSettings :: SnapshotCreateSettings Source #

Reasonable defaults for snapshot creation

  • snapWaitForCompletion False
  • snapIndices Nothing
  • snapIgnoreUnavailable False
  • snapIncludeGlobalState True
  • snapPartial False

defaultSnapshotRepoUpdateSettings :: SnapshotRepoUpdateSettings Source #

Reasonable defaults for repo creation/update

  • repoUpdateVerify True

defaultSnapshotRestoreSettings :: SnapshotRestoreSettings Source #

Reasonable defaults for snapshot restores

  • snapRestoreWaitForCompletion False
  • snapRestoreIndices Nothing
  • snapRestoreIgnoreUnavailable False
  • snapRestoreIncludeGlobalState True
  • snapRestoreRenamePattern Nothing
  • snapRestoreRenameReplacement Nothing
  • snapRestorePartial False
  • snapRestoreIncludeAliases True
  • snapRestoreIndexSettingsOverrides Nothing
  • snapRestoreIgnoreIndexSettings Nothing

mkRRGroupRefNum :: Int -> Maybe RRGroupRefNum Source #

Only allows valid group number references (1-9).

Optics

unpackId :: DocId -> Text Source #

unpackId is a silly convenience function that gets used once.

Optics

data ReindexRequest Source #

Instances

Instances details
FromJSON ReindexRequest Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

ToJSON ReindexRequest Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Generic ReindexRequest Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Associated Types

type Rep ReindexRequest :: Type -> Type #

Show ReindexRequest Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Eq ReindexRequest Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

type Rep ReindexRequest Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

type Rep ReindexRequest = D1 ('MetaData "ReindexRequest" "Database.Bloodhound.Internal.Versions.Common.Types.Reindex" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "ReindexRequest" 'PrefixI 'True) ((S1 ('MetaSel ('Just "reindexConflicts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ReindexConflicts)) :*: S1 ('MetaSel ('Just "reindexSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReindexSource)) :*: (S1 ('MetaSel ('Just "reindexDest") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReindexDest) :*: S1 ('MetaSel ('Just "reindexScript") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ReindexScript)))))

data ReindexConflicts Source #

Instances

Instances details
FromJSON ReindexConflicts Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

ToJSON ReindexConflicts Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Generic ReindexConflicts Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Associated Types

type Rep ReindexConflicts :: Type -> Type #

Show ReindexConflicts Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Eq ReindexConflicts Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

type Rep ReindexConflicts Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

type Rep ReindexConflicts = D1 ('MetaData "ReindexConflicts" "Database.Bloodhound.Internal.Versions.Common.Types.Reindex" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "ReindexAbortOnConflicts" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ReindexProceedOnConflicts" 'PrefixI 'False) (U1 :: Type -> Type))

data ReindexSource Source #

Elasticsearch also supports reindex from remote, it could be added here if required

Instances

Instances details
FromJSON ReindexSource Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

ToJSON ReindexSource Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Generic ReindexSource Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Associated Types

type Rep ReindexSource :: Type -> Type #

Show ReindexSource Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Eq ReindexSource Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

type Rep ReindexSource Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

type Rep ReindexSource = D1 ('MetaData "ReindexSource" "Database.Bloodhound.Internal.Versions.Common.Types.Reindex" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "ReindexSource" 'PrefixI 'True) ((S1 ('MetaSel ('Just "reindexSourceIndex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty IndexName)) :*: S1 ('MetaSel ('Just "reindexSourceMaxDocs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "reindexSourceQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Query)) :*: (S1 ('MetaSel ('Just "reindexSourceSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "reindexSourceSlice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ReindexSlice))))))

data ReindexSlice Source #

Instances

Instances details
FromJSON ReindexSlice Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

ToJSON ReindexSlice Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Generic ReindexSlice Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Associated Types

type Rep ReindexSlice :: Type -> Type #

Show ReindexSlice Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Eq ReindexSlice Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

type Rep ReindexSlice Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

type Rep ReindexSlice = D1 ('MetaData "ReindexSlice" "Database.Bloodhound.Internal.Versions.Common.Types.Reindex" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "ReindexSlice" 'PrefixI 'True) (S1 ('MetaSel ('Just "reindexSliceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "reindexSliceMax") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))))

data ReindexDest Source #

Instances

Instances details
FromJSON ReindexDest Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

ToJSON ReindexDest Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Generic ReindexDest Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Associated Types

type Rep ReindexDest :: Type -> Type #

Show ReindexDest Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Eq ReindexDest Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

type Rep ReindexDest Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

type Rep ReindexDest = D1 ('MetaData "ReindexDest" "Database.Bloodhound.Internal.Versions.Common.Types.Reindex" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "ReindexDest" 'PrefixI 'True) (S1 ('MetaSel ('Just "reindexDestIndex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IndexName) :*: (S1 ('MetaSel ('Just "reindexDestVersionType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe VersionType)) :*: S1 ('MetaSel ('Just "reindexDestOpType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ReindexOpType)))))

data VersionType Source #

Instances

Instances details
FromJSON VersionType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

ToJSON VersionType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Generic VersionType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Associated Types

type Rep VersionType :: Type -> Type #

Show VersionType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Eq VersionType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

type Rep VersionType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

type Rep VersionType = D1 ('MetaData "VersionType" "Database.Bloodhound.Internal.Versions.Common.Types.Reindex" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) ((C1 ('MetaCons "VersionTypeInternal" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "VersionTypeExternal" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "VersionTypeExternalGT" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "VersionTypeExternalGTE" 'PrefixI 'False) (U1 :: Type -> Type)))

data ReindexOpType Source #

Constructors

OpCreate 
OpIndex 

Instances

Instances details
FromJSON ReindexOpType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

ToJSON ReindexOpType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Generic ReindexOpType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Associated Types

type Rep ReindexOpType :: Type -> Type #

Show ReindexOpType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Eq ReindexOpType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

type Rep ReindexOpType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

type Rep ReindexOpType = D1 ('MetaData "ReindexOpType" "Database.Bloodhound.Internal.Versions.Common.Types.Reindex" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "OpCreate" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OpIndex" 'PrefixI 'False) (U1 :: Type -> Type))

data ReindexScript Source #

Instances

Instances details
FromJSON ReindexScript Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

ToJSON ReindexScript Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Generic ReindexScript Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Associated Types

type Rep ReindexScript :: Type -> Type #

Show ReindexScript Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Eq ReindexScript Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

type Rep ReindexScript Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

type Rep ReindexScript = D1 ('MetaData "ReindexScript" "Database.Bloodhound.Internal.Versions.Common.Types.Reindex" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "ReindexScript" 'PrefixI 'True) (S1 ('MetaSel ('Just "reindexScriptLanguage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ScriptLanguage) :*: S1 ('MetaSel ('Just "reindexScriptSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data ReindexResponse Source #

Instances

Instances details
FromJSON ReindexResponse Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

ToJSON ReindexResponse Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Generic ReindexResponse Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Associated Types

type Rep ReindexResponse :: Type -> Type #

Show ReindexResponse Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

Eq ReindexResponse Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

type Rep ReindexResponse Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Reindex

type Rep ReindexResponse = D1 ('MetaData "ReindexResponse" "Database.Bloodhound.Internal.Versions.Common.Types.Reindex" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "ReindexResponse" 'PrefixI 'True) ((S1 ('MetaSel ('Just "reindexResponseTook") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "reindexResponseUpdated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "reindexResponseCreated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :*: (S1 ('MetaSel ('Just "reindexResponseBatches") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "reindexResponseVersionConflicts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "reindexResponseThrottledMillis") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))))

data Script Source #

Instances

Instances details
FromJSON Script Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

ToJSON Script Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

Generic Script Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

Associated Types

type Rep Script :: Type -> Type #

Methods

from :: Script -> Rep Script x #

to :: Rep Script x -> Script #

Show Script Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

Eq Script Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

Methods

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

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

type Rep Script Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

type Rep Script = D1 ('MetaData "Script" "Database.Bloodhound.Internal.Versions.Common.Types.Script" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "Script" 'PrefixI 'True) (S1 ('MetaSel ('Just "scriptLanguage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ScriptLanguage)) :*: (S1 ('MetaSel ('Just "scriptSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ScriptSource) :*: S1 ('MetaSel ('Just "scriptParams") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ScriptParams)))))

data BoostMode Source #

Instances

Instances details
FromJSON BoostMode Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

ToJSON BoostMode Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

Generic BoostMode Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

Associated Types

type Rep BoostMode :: Type -> Type #

Show BoostMode Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

Eq BoostMode Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

type Rep BoostMode Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

type Rep BoostMode = D1 ('MetaData "BoostMode" "Database.Bloodhound.Internal.Versions.Common.Types.Script" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) ((C1 ('MetaCons "BoostModeMultiply" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "BoostModeReplace" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BoostModeSum" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "BoostModeAvg" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "BoostModeMax" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BoostModeMin" 'PrefixI 'False) (U1 :: Type -> Type))))

data ScoreMode Source #

Instances

Instances details
FromJSON ScoreMode Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

ToJSON ScoreMode Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

Generic ScoreMode Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

Associated Types

type Rep ScoreMode :: Type -> Type #

Show ScoreMode Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

Eq ScoreMode Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

type Rep ScoreMode Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

type Rep ScoreMode = D1 ('MetaData "ScoreMode" "Database.Bloodhound.Internal.Versions.Common.Types.Script" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) ((C1 ('MetaCons "ScoreModeMultiply" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ScoreModeSum" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ScoreModeAvg" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "ScoreModeFirst" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ScoreModeMax" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ScoreModeMin" 'PrefixI 'False) (U1 :: Type -> Type))))

data FunctionScoreFunction Source #

Instances

Instances details
Generic FunctionScoreFunction Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

Associated Types

type Rep FunctionScoreFunction :: Type -> Type #

Show FunctionScoreFunction Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

Eq FunctionScoreFunction Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

type Rep FunctionScoreFunction Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

type Rep FunctionScoreFunction = D1 ('MetaData "FunctionScoreFunction" "Database.Bloodhound.Internal.Versions.Common.Types.Script" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "FunctionScoreFunctionScript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Script)) :+: (C1 ('MetaCons "FunctionScoreFunctionRandom" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Seed)) :+: C1 ('MetaCons "FunctionScoreFunctionFieldValueFactor" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FieldValueFactor))))

data FieldValueFactor Source #

Instances

Instances details
FromJSON FieldValueFactor Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

ToJSON FieldValueFactor Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

Generic FieldValueFactor Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

Associated Types

type Rep FieldValueFactor :: Type -> Type #

Show FieldValueFactor Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

Eq FieldValueFactor Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

type Rep FieldValueFactor Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

type Rep FieldValueFactor = D1 ('MetaData "FieldValueFactor" "Database.Bloodhound.Internal.Versions.Common.Types.Script" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "FieldValueFactor" 'PrefixI 'True) ((S1 ('MetaSel ('Just "fieldValueFactorField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FieldName) :*: S1 ('MetaSel ('Just "fieldValueFactor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Factor))) :*: (S1 ('MetaSel ('Just "fieldValueFactorModifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe FactorModifier)) :*: S1 ('MetaSel ('Just "fieldValueFactorMissing") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe FactorMissingFieldValue)))))

data FactorModifier Source #

Instances

Instances details
FromJSON FactorModifier Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

ToJSON FactorModifier Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

Generic FactorModifier Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

Associated Types

type Rep FactorModifier :: Type -> Type #

Show FactorModifier Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

Eq FactorModifier Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

type Rep FactorModifier Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Script

type Rep FactorModifier = D1 ('MetaData "FactorModifier" "Database.Bloodhound.Internal.Versions.Common.Types.Script" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (((C1 ('MetaCons "FactorModifierNone" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FactorModifierLog" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "FactorModifierLog1p" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "FactorModifierLog2p" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FactorModifierLn" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "FactorModifierLn1p" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FactorModifierLn2p" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "FactorModifierSquare" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "FactorModifierSqrt" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FactorModifierReciprocal" 'PrefixI 'False) (U1 :: Type -> Type)))))

data WildcardQuery Source #

Instances

Instances details
FromJSON WildcardQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Wildcard

ToJSON WildcardQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Wildcard

Generic WildcardQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Wildcard

Associated Types

type Rep WildcardQuery :: Type -> Type #

Show WildcardQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Wildcard

Eq WildcardQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Wildcard

type Rep WildcardQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Wildcard

type Rep WildcardQuery = D1 ('MetaData "WildcardQuery" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Wildcard" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "WildcardQuery" 'PrefixI 'True) (S1 ('MetaSel ('Just "wildcardQueryField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FieldName) :*: (S1 ('MetaSel ('Just "wildcardQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Key) :*: S1 ('MetaSel ('Just "wildcardQueryBoost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Boost)))))

data FieldOrFields Source #

Instances

Instances details
FromJSON FieldOrFields Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.SimpleQueryString

ToJSON FieldOrFields Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.SimpleQueryString

Generic FieldOrFields Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.SimpleQueryString

Associated Types

type Rep FieldOrFields :: Type -> Type #

Show FieldOrFields Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.SimpleQueryString

Eq FieldOrFields Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.SimpleQueryString

type Rep FieldOrFields Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.SimpleQueryString

type Rep FieldOrFields = D1 ('MetaData "FieldOrFields" "Database.Bloodhound.Internal.Versions.Common.Types.Query.SimpleQueryString" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "FofField" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FieldName)) :+: C1 ('MetaCons "FofFields" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty FieldName))))

data SimpleQueryFlag Source #

Instances

Instances details
FromJSON SimpleQueryFlag Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.SimpleQueryString

ToJSON SimpleQueryFlag Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.SimpleQueryString

Generic SimpleQueryFlag Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.SimpleQueryString

Associated Types

type Rep SimpleQueryFlag :: Type -> Type #

Show SimpleQueryFlag Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.SimpleQueryString

Eq SimpleQueryFlag Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.SimpleQueryString

type Rep SimpleQueryFlag Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.SimpleQueryString

type Rep SimpleQueryFlag = D1 ('MetaData "SimpleQueryFlag" "Database.Bloodhound.Internal.Versions.Common.Types.Query.SimpleQueryString" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (((C1 ('MetaCons "SimpleQueryAll" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SimpleQueryNone" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SimpleQueryAnd" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "SimpleQueryOr" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SimpleQueryPrefix" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SimpleQueryPhrase" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "SimpleQueryPrecedence" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SimpleQueryEscape" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SimpleQueryWhitespace" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "SimpleQueryFuzzy" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SimpleQueryNear" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SimpleQuerySlop" 'PrefixI 'False) (U1 :: Type -> Type)))))

data SimpleQueryStringQuery Source #

Instances

Instances details
FromJSON SimpleQueryStringQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.SimpleQueryString

ToJSON SimpleQueryStringQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.SimpleQueryString

Generic SimpleQueryStringQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.SimpleQueryString

Associated Types

type Rep SimpleQueryStringQuery :: Type -> Type #

Show SimpleQueryStringQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.SimpleQueryString

Eq SimpleQueryStringQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.SimpleQueryString

type Rep SimpleQueryStringQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.SimpleQueryString

type Rep SimpleQueryStringQuery = D1 ('MetaData "SimpleQueryStringQuery" "Database.Bloodhound.Internal.Versions.Common.Types.Query.SimpleQueryString" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "SimpleQueryStringQuery" 'PrefixI 'True) ((S1 ('MetaSel ('Just "simpleQueryStringQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 QueryString) :*: (S1 ('MetaSel ('Just "simpleQueryStringField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe FieldOrFields)) :*: S1 ('MetaSel ('Just "simpleQueryStringOperator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe BooleanOperator)))) :*: ((S1 ('MetaSel ('Just "simpleQueryStringAnalyzer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Analyzer)) :*: S1 ('MetaSel ('Just "simpleQueryStringFlags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty SimpleQueryFlag)))) :*: (S1 ('MetaSel ('Just "simpleQueryStringLowercaseExpanded") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe LowercaseExpanded)) :*: S1 ('MetaSel ('Just "simpleQueryStringLocale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Locale))))))

data RegexpFlag Source #

Instances

Instances details
FromJSON RegexpFlag Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Regexp

Generic RegexpFlag Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Regexp

Associated Types

type Rep RegexpFlag :: Type -> Type #

Show RegexpFlag Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Regexp

Eq RegexpFlag Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Regexp

type Rep RegexpFlag Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Regexp

type Rep RegexpFlag = D1 ('MetaData "RegexpFlag" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Regexp" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) ((C1 ('MetaCons "AnyString" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Automaton" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Complement" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "Empty" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Intersection" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Interval" 'PrefixI 'False) (U1 :: Type -> Type))))

data RegexpFlags Source #

Instances

Instances details
FromJSON RegexpFlags Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Regexp

ToJSON RegexpFlags Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Regexp

Generic RegexpFlags Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Regexp

Associated Types

type Rep RegexpFlags :: Type -> Type #

Show RegexpFlags Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Regexp

Eq RegexpFlags Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Regexp

type Rep RegexpFlags Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Regexp

type Rep RegexpFlags = D1 ('MetaData "RegexpFlags" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Regexp" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "AllRegexpFlags" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "NoRegexpFlags" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SomeRegexpFlags" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty RegexpFlag)))))

data RegexpQuery Source #

Instances

Instances details
FromJSON RegexpQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Regexp

ToJSON RegexpQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Regexp

Generic RegexpQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Regexp

Associated Types

type Rep RegexpQuery :: Type -> Type #

Show RegexpQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Regexp

Eq RegexpQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Regexp

type Rep RegexpQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Regexp

type Rep RegexpQuery = D1 ('MetaData "RegexpQuery" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Regexp" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "RegexpQuery" 'PrefixI 'True) ((S1 ('MetaSel ('Just "regexpQueryField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FieldName) :*: S1 ('MetaSel ('Just "regexpQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Regexp)) :*: (S1 ('MetaSel ('Just "regexpQueryFlags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RegexpFlags) :*: S1 ('MetaSel ('Just "regexpQueryBoost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Boost)))))

newtype GreaterThan Source #

Constructors

GreaterThan Double 

Instances

Instances details
Generic GreaterThan Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

Associated Types

type Rep GreaterThan :: Type -> Type #

Show GreaterThan Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

Eq GreaterThan Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

type Rep GreaterThan Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

type Rep GreaterThan = D1 ('MetaData "GreaterThan" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Range" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'True) (C1 ('MetaCons "GreaterThan" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

newtype GreaterThanD Source #

Constructors

GreaterThanD UTCTime 

Instances

Instances details
Generic GreaterThanD Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

Associated Types

type Rep GreaterThanD :: Type -> Type #

Show GreaterThanD Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

Eq GreaterThanD Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

type Rep GreaterThanD Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

type Rep GreaterThanD = D1 ('MetaData "GreaterThanD" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Range" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'True) (C1 ('MetaCons "GreaterThanD" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime)))

newtype GreaterThanEq Source #

Constructors

GreaterThanEq Double 

Instances

Instances details
Generic GreaterThanEq Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

Associated Types

type Rep GreaterThanEq :: Type -> Type #

Show GreaterThanEq Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

Eq GreaterThanEq Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

type Rep GreaterThanEq Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

type Rep GreaterThanEq = D1 ('MetaData "GreaterThanEq" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Range" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'True) (C1 ('MetaCons "GreaterThanEq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

newtype LessThan Source #

Constructors

LessThan Double 

Instances

Instances details
Generic LessThan Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

Associated Types

type Rep LessThan :: Type -> Type #

Methods

from :: LessThan -> Rep LessThan x #

to :: Rep LessThan x -> LessThan #

Show LessThan Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

Eq LessThan Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

type Rep LessThan Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

type Rep LessThan = D1 ('MetaData "LessThan" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Range" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'True) (C1 ('MetaCons "LessThan" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

newtype LessThanD Source #

Constructors

LessThanD UTCTime 

Instances

Instances details
Generic LessThanD Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

Associated Types

type Rep LessThanD :: Type -> Type #

Show LessThanD Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

Eq LessThanD Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

type Rep LessThanD Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

type Rep LessThanD = D1 ('MetaData "LessThanD" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Range" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'True) (C1 ('MetaCons "LessThanD" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime)))

newtype LessThanEq Source #

Constructors

LessThanEq Double 

Instances

Instances details
Generic LessThanEq Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

Associated Types

type Rep LessThanEq :: Type -> Type #

Show LessThanEq Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

Eq LessThanEq Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

type Rep LessThanEq Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

type Rep LessThanEq = D1 ('MetaData "LessThanEq" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Range" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'True) (C1 ('MetaCons "LessThanEq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

newtype LessThanEqD Source #

Constructors

LessThanEqD UTCTime 

Instances

Instances details
Generic LessThanEqD Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

Associated Types

type Rep LessThanEqD :: Type -> Type #

Show LessThanEqD Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

Eq LessThanEqD Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

type Rep LessThanEqD Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

type Rep LessThanEqD = D1 ('MetaData "LessThanEqD" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Range" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'True) (C1 ('MetaCons "LessThanEqD" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime)))

data RangeQuery Source #

Instances

Instances details
FromJSON RangeQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

ToJSON RangeQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

Generic RangeQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

Associated Types

type Rep RangeQuery :: Type -> Type #

Show RangeQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

Eq RangeQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

type Rep RangeQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

type Rep RangeQuery = D1 ('MetaData "RangeQuery" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Range" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "RangeQuery" 'PrefixI 'True) (S1 ('MetaSel ('Just "rangeQueryField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FieldName) :*: (S1 ('MetaSel ('Just "rangeQueryRange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RangeValue) :*: S1 ('MetaSel ('Just "rangeQueryBoost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Boost))))

data RangeValue Source #

Instances

Instances details
FromJSON RangeValue Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

Generic RangeValue Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

Associated Types

type Rep RangeValue :: Type -> Type #

Show RangeValue Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

Eq RangeValue Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

type Rep RangeValue Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Range

type Rep RangeValue = D1 ('MetaData "RangeValue" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Range" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) ((((C1 ('MetaCons "RangeDateLte" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LessThanEqD)) :+: C1 ('MetaCons "RangeDateLt" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LessThanD))) :+: (C1 ('MetaCons "RangeDateGte" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GreaterThanEqD)) :+: C1 ('MetaCons "RangeDateGt" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GreaterThanD)))) :+: ((C1 ('MetaCons "RangeDateGtLt" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GreaterThanD) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LessThanD)) :+: C1 ('MetaCons "RangeDateGteLte" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GreaterThanEqD) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LessThanEqD))) :+: (C1 ('MetaCons "RangeDateGteLt" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GreaterThanEqD) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LessThanD)) :+: C1 ('MetaCons "RangeDateGtLte" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GreaterThanD) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LessThanEqD))))) :+: (((C1 ('MetaCons "RangeDoubleLte" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LessThanEq)) :+: C1 ('MetaCons "RangeDoubleLt" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LessThan))) :+: (C1 ('MetaCons "RangeDoubleGte" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GreaterThanEq)) :+: C1 ('MetaCons "RangeDoubleGt" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GreaterThan)))) :+: ((C1 ('MetaCons "RangeDoubleGtLt" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GreaterThan) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LessThan)) :+: C1 ('MetaCons "RangeDoubleGteLte" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GreaterThanEq) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LessThanEq))) :+: (C1 ('MetaCons "RangeDoubleGteLt" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GreaterThanEq) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LessThan)) :+: C1 ('MetaCons "RangeDoubleGtLte" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GreaterThan) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LessThanEq))))))

data QueryStringQuery Source #

Instances

Instances details
FromJSON QueryStringQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.QueryString

ToJSON QueryStringQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.QueryString

Generic QueryStringQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.QueryString

Associated Types

type Rep QueryStringQuery :: Type -> Type #

Show QueryStringQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.QueryString

Eq QueryStringQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.QueryString

type Rep QueryStringQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.QueryString

type Rep QueryStringQuery = D1 ('MetaData "QueryStringQuery" "Database.Bloodhound.Internal.Versions.Common.Types.Query.QueryString" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "QueryStringQuery" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "queryStringQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 QueryString) :*: S1 ('MetaSel ('Just "queryStringDefaultField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe FieldName))) :*: (S1 ('MetaSel ('Just "queryStringOperator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe BooleanOperator)) :*: S1 ('MetaSel ('Just "queryStringAnalyzer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Analyzer)))) :*: ((S1 ('MetaSel ('Just "queryStringAllowLeadingWildcard") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe AllowLeadingWildcard)) :*: S1 ('MetaSel ('Just "queryStringLowercaseExpanded") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe LowercaseExpanded))) :*: (S1 ('MetaSel ('Just "queryStringEnablePositionIncrements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe EnablePositionIncrements)) :*: S1 ('MetaSel ('Just "queryStringFuzzyMaxExpansions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MaxExpansions))))) :*: (((S1 ('MetaSel ('Just "queryStringFuzziness") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Fuzziness)) :*: S1 ('MetaSel ('Just "queryStringFuzzyPrefixLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PrefixLength))) :*: (S1 ('MetaSel ('Just "queryStringPhraseSlop") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PhraseSlop)) :*: S1 ('MetaSel ('Just "queryStringBoost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Boost)))) :*: ((S1 ('MetaSel ('Just "queryStringAnalyzeWildcard") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe AnalyzeWildcard)) :*: S1 ('MetaSel ('Just "queryStringGeneratePhraseQueries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe GeneratePhraseQueries))) :*: (S1 ('MetaSel ('Just "queryStringMinimumShouldMatch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MinimumMatch)) :*: (S1 ('MetaSel ('Just "queryStringLenient") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Lenient)) :*: S1 ('MetaSel ('Just "queryStringLocale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Locale))))))))

data PrefixQuery Source #

Instances

Instances details
FromJSON PrefixQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Prefix

ToJSON PrefixQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Prefix

Generic PrefixQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Prefix

Associated Types

type Rep PrefixQuery :: Type -> Type #

Show PrefixQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Prefix

Eq PrefixQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Prefix

type Rep PrefixQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Prefix

type Rep PrefixQuery = D1 ('MetaData "PrefixQuery" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Prefix" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "PrefixQuery" 'PrefixI 'True) (S1 ('MetaSel ('Just "prefixQueryField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FieldName) :*: (S1 ('MetaSel ('Just "prefixQueryPrefixValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "prefixQueryBoost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Boost)))))

data MoreLikeThisFieldQuery Source #

Instances

Instances details
FromJSON MoreLikeThisFieldQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.MoreLikeThisField

ToJSON MoreLikeThisFieldQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.MoreLikeThisField

Generic MoreLikeThisFieldQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.MoreLikeThisField

Associated Types

type Rep MoreLikeThisFieldQuery :: Type -> Type #

Show MoreLikeThisFieldQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.MoreLikeThisField

Eq MoreLikeThisFieldQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.MoreLikeThisField

type Rep MoreLikeThisFieldQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.MoreLikeThisField

type Rep MoreLikeThisFieldQuery = D1 ('MetaData "MoreLikeThisFieldQuery" "Database.Bloodhound.Internal.Versions.Common.Types.Query.MoreLikeThisField" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "MoreLikeThisFieldQuery" 'PrefixI 'True) (((S1 ('MetaSel ('Just "moreLikeThisFieldText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "moreLikeThisFieldFields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FieldName) :*: S1 ('MetaSel ('Just "moreLikeThisFieldPercentMatch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PercentMatch)))) :*: (S1 ('MetaSel ('Just "moreLikeThisFieldMinimumTermFreq") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MinimumTermFrequency)) :*: (S1 ('MetaSel ('Just "moreLikeThisFieldMaxQueryTerms") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MaxQueryTerms)) :*: S1 ('MetaSel ('Just "moreLikeThisFieldStopWords") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty StopWord)))))) :*: ((S1 ('MetaSel ('Just "moreLikeThisFieldMinDocFrequency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MinDocFrequency)) :*: (S1 ('MetaSel ('Just "moreLikeThisFieldMaxDocFrequency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MaxDocFrequency)) :*: S1 ('MetaSel ('Just "moreLikeThisFieldMinWordLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MinWordLength)))) :*: ((S1 ('MetaSel ('Just "moreLikeThisFieldMaxWordLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MaxWordLength)) :*: S1 ('MetaSel ('Just "moreLikeThisFieldBoostTerms") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe BoostTerms))) :*: (S1 ('MetaSel ('Just "moreLikeThisFieldBoost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Boost)) :*: S1 ('MetaSel ('Just "moreLikeThisFieldAnalyzer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Analyzer)))))))

data MoreLikeThisQuery Source #

Instances

Instances details
FromJSON MoreLikeThisQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.MoreLikeThis

ToJSON MoreLikeThisQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.MoreLikeThis

Generic MoreLikeThisQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.MoreLikeThis

Associated Types

type Rep MoreLikeThisQuery :: Type -> Type #

Show MoreLikeThisQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.MoreLikeThis

Eq MoreLikeThisQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.MoreLikeThis

type Rep MoreLikeThisQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.MoreLikeThis

type Rep MoreLikeThisQuery = D1 ('MetaData "MoreLikeThisQuery" "Database.Bloodhound.Internal.Versions.Common.Types.Query.MoreLikeThis" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "MoreLikeThisQuery" 'PrefixI 'True) (((S1 ('MetaSel ('Just "moreLikeThisText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "moreLikeThisFields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty FieldName))) :*: S1 ('MetaSel ('Just "moreLikeThisPercentMatch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PercentMatch)))) :*: (S1 ('MetaSel ('Just "moreLikeThisMinimumTermFreq") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MinimumTermFrequency)) :*: (S1 ('MetaSel ('Just "moreLikeThisMaxQueryTerms") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MaxQueryTerms)) :*: S1 ('MetaSel ('Just "moreLikeThisStopWords") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty StopWord)))))) :*: ((S1 ('MetaSel ('Just "moreLikeThisMinDocFrequency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MinDocFrequency)) :*: (S1 ('MetaSel ('Just "moreLikeThisMaxDocFrequency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MaxDocFrequency)) :*: S1 ('MetaSel ('Just "moreLikeThisMinWordLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MinWordLength)))) :*: ((S1 ('MetaSel ('Just "moreLikeThisMaxWordLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MaxWordLength)) :*: S1 ('MetaSel ('Just "moreLikeThisBoostTerms") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe BoostTerms))) :*: (S1 ('MetaSel ('Just "moreLikeThisBoost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Boost)) :*: S1 ('MetaSel ('Just "moreLikeThisAnalyzer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Analyzer)))))))

data MatchQuery Source #

Instances

Instances details
FromJSON MatchQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

ToJSON MatchQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

Generic MatchQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

Associated Types

type Rep MatchQuery :: Type -> Type #

Show MatchQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

Eq MatchQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

type Rep MatchQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

type Rep MatchQuery = D1 ('MetaData "MatchQuery" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Match" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "MatchQuery" 'PrefixI 'True) (((S1 ('MetaSel ('Just "matchQueryField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FieldName) :*: (S1 ('MetaSel ('Just "matchQueryQueryString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 QueryString) :*: S1 ('MetaSel ('Just "matchQueryOperator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BooleanOperator))) :*: (S1 ('MetaSel ('Just "matchQueryZeroTerms") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ZeroTermsQuery) :*: (S1 ('MetaSel ('Just "matchQueryCutoffFrequency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe CutoffFrequency)) :*: S1 ('MetaSel ('Just "matchQueryMatchType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MatchQueryType))))) :*: ((S1 ('MetaSel ('Just "matchQueryAnalyzer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Analyzer)) :*: (S1 ('MetaSel ('Just "matchQueryMaxExpansions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MaxExpansions)) :*: S1 ('MetaSel ('Just "matchQueryLenient") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Lenient)))) :*: (S1 ('MetaSel ('Just "matchQueryBoost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Boost)) :*: (S1 ('MetaSel ('Just "matchQueryMinimumShouldMatch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "matchQueryFuzziness") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Fuzziness)))))))

data MatchQueryType Source #

Instances

Instances details
FromJSON MatchQueryType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

ToJSON MatchQueryType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

Generic MatchQueryType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

Associated Types

type Rep MatchQueryType :: Type -> Type #

Show MatchQueryType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

Eq MatchQueryType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

type Rep MatchQueryType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

type Rep MatchQueryType = D1 ('MetaData "MatchQueryType" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Match" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "MatchPhrase" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MatchPhrasePrefix" 'PrefixI 'False) (U1 :: Type -> Type))

data MultiMatchQuery Source #

Instances

Instances details
FromJSON MultiMatchQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

ToJSON MultiMatchQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

Generic MultiMatchQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

Associated Types

type Rep MultiMatchQuery :: Type -> Type #

Show MultiMatchQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

Eq MultiMatchQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

type Rep MultiMatchQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

type Rep MultiMatchQuery = D1 ('MetaData "MultiMatchQuery" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Match" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "MultiMatchQuery" 'PrefixI 'True) (((S1 ('MetaSel ('Just "multiMatchQueryFields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [FieldName]) :*: S1 ('MetaSel ('Just "multiMatchQueryString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 QueryString)) :*: (S1 ('MetaSel ('Just "multiMatchQueryOperator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BooleanOperator) :*: (S1 ('MetaSel ('Just "multiMatchQueryZeroTerms") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ZeroTermsQuery) :*: S1 ('MetaSel ('Just "multiMatchQueryTiebreaker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Tiebreaker))))) :*: ((S1 ('MetaSel ('Just "multiMatchQueryType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MultiMatchQueryType)) :*: S1 ('MetaSel ('Just "multiMatchQueryCutoffFrequency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe CutoffFrequency))) :*: (S1 ('MetaSel ('Just "multiMatchQueryAnalyzer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Analyzer)) :*: (S1 ('MetaSel ('Just "multiMatchQueryMaxExpansions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MaxExpansions)) :*: S1 ('MetaSel ('Just "multiMatchQueryLenient") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Lenient)))))))

data MultiMatchQueryType Source #

Instances

Instances details
FromJSON MultiMatchQueryType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

ToJSON MultiMatchQueryType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

Generic MultiMatchQueryType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

Associated Types

type Rep MultiMatchQueryType :: Type -> Type #

Show MultiMatchQueryType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

Eq MultiMatchQueryType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

type Rep MultiMatchQueryType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Match

type Rep MultiMatchQueryType = D1 ('MetaData "MultiMatchQueryType" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Match" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) ((C1 ('MetaCons "MultiMatchBestFields" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MultiMatchMostFields" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MultiMatchCrossFields" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MultiMatchPhrase" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MultiMatchPhrasePrefix" 'PrefixI 'False) (U1 :: Type -> Type))))

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.

data FuzzyQuery Source #

Instances

Instances details
FromJSON FuzzyQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Fuzzy

ToJSON FuzzyQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Fuzzy

Generic FuzzyQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Fuzzy

Associated Types

type Rep FuzzyQuery :: Type -> Type #

Show FuzzyQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Fuzzy

Eq FuzzyQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Fuzzy

type Rep FuzzyQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Fuzzy

type Rep FuzzyQuery = D1 ('MetaData "FuzzyQuery" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Fuzzy" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "FuzzyQuery" 'PrefixI 'True) ((S1 ('MetaSel ('Just "fuzzyQueryField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FieldName) :*: (S1 ('MetaSel ('Just "fuzzyQueryValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "fuzzyQueryPrefixLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PrefixLength))) :*: (S1 ('MetaSel ('Just "fuzzyQueryMaxExpansions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MaxExpansions) :*: (S1 ('MetaSel ('Just "fuzzyQueryFuzziness") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Fuzziness) :*: S1 ('MetaSel ('Just "fuzzyQueryBoost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Boost))))))

data FuzzyLikeFieldQuery Source #

Instances

Instances details
FromJSON FuzzyLikeFieldQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Fuzzy

ToJSON FuzzyLikeFieldQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Fuzzy

Generic FuzzyLikeFieldQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Fuzzy

Associated Types

type Rep FuzzyLikeFieldQuery :: Type -> Type #

Show FuzzyLikeFieldQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Fuzzy

Eq FuzzyLikeFieldQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Fuzzy

type Rep FuzzyLikeFieldQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Fuzzy

type Rep FuzzyLikeFieldQuery = D1 ('MetaData "FuzzyLikeFieldQuery" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Fuzzy" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "FuzzyLikeFieldQuery" 'PrefixI 'True) (((S1 ('MetaSel ('Just "fuzzyLikeField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FieldName) :*: S1 ('MetaSel ('Just "fuzzyLikeFieldText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "fuzzyLikeFieldMaxQueryTerms") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MaxQueryTerms) :*: S1 ('MetaSel ('Just "fuzzyLikeFieldIgnoreTermFrequency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IgnoreTermFrequency))) :*: ((S1 ('MetaSel ('Just "fuzzyLikeFieldFuzziness") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Fuzziness) :*: S1 ('MetaSel ('Just "fuzzyLikeFieldPrefixLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PrefixLength)) :*: (S1 ('MetaSel ('Just "fuzzyLikeFieldBoost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Boost) :*: S1 ('MetaSel ('Just "fuzzyLikeFieldAnalyzer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Analyzer))))))

data FuzzyLikeThisQuery Source #

Instances

Instances details
FromJSON FuzzyLikeThisQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Fuzzy

ToJSON FuzzyLikeThisQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Fuzzy

Generic FuzzyLikeThisQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Fuzzy

Associated Types

type Rep FuzzyLikeThisQuery :: Type -> Type #

Show FuzzyLikeThisQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Fuzzy

Eq FuzzyLikeThisQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Fuzzy

type Rep FuzzyLikeThisQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Fuzzy

type Rep FuzzyLikeThisQuery = D1 ('MetaData "FuzzyLikeThisQuery" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Fuzzy" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "FuzzyLikeThisQuery" 'PrefixI 'True) (((S1 ('MetaSel ('Just "fuzzyLikeFields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [FieldName]) :*: S1 ('MetaSel ('Just "fuzzyLikeText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "fuzzyLikeMaxQueryTerms") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MaxQueryTerms) :*: S1 ('MetaSel ('Just "fuzzyLikeIgnoreTermFrequency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IgnoreTermFrequency))) :*: ((S1 ('MetaSel ('Just "fuzzyLikeFuzziness") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Fuzziness) :*: S1 ('MetaSel ('Just "fuzzyLikePrefixLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PrefixLength)) :*: (S1 ('MetaSel ('Just "fuzzyLikeBoost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Boost) :*: S1 ('MetaSel ('Just "fuzzyLikeAnalyzer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Analyzer))))))

data BooleanOperator Source #

BooleanOperator is the usual And/Or operators with an ES compatible JSON encoding baked in. Used all over the place.

Constructors

And 
Or 

Instances

Instances details
FromJSON BooleanOperator Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Commons

ToJSON BooleanOperator Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Commons

Generic BooleanOperator Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Commons

Associated Types

type Rep BooleanOperator :: Type -> Type #

Show BooleanOperator Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Commons

Eq BooleanOperator Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Commons

type Rep BooleanOperator Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Commons

type Rep BooleanOperator = D1 ('MetaData "BooleanOperator" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Commons" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "And" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Or" 'PrefixI 'False) (U1 :: Type -> Type))

data Fuzziness Source #

Instances

Instances details
FromJSON Fuzziness Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Commons

ToJSON Fuzziness Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Commons

Generic Fuzziness Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Commons

Associated Types

type Rep Fuzziness :: Type -> Type #

Show Fuzziness Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Commons

Eq Fuzziness Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Commons

type Rep Fuzziness Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Commons

type Rep Fuzziness = D1 ('MetaData "Fuzziness" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Commons" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "Fuzziness" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)) :+: C1 ('MetaCons "FuzzinessAuto" 'PrefixI 'False) (U1 :: Type -> Type))

data ZeroTermsQuery Source #

Instances

Instances details
FromJSON ZeroTermsQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Commons

ToJSON ZeroTermsQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Commons

Generic ZeroTermsQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Commons

Associated Types

type Rep ZeroTermsQuery :: Type -> Type #

Show ZeroTermsQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Commons

Eq ZeroTermsQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Commons

type Rep ZeroTermsQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.Commons

type Rep ZeroTermsQuery = D1 ('MetaData "ZeroTermsQuery" "Database.Bloodhound.Internal.Versions.Common.Types.Query.Commons" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "ZeroTermsNone" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ZeroTermsAll" 'PrefixI 'False) (U1 :: Type -> Type))

fieldTagged :: (Monad m, MonadFail m) => (FieldName -> Object -> m a) -> Object -> m a Source #

data CommonMinimumMatch Source #

Instances

Instances details
FromJSON CommonMinimumMatch Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.CommonTerms

ToJSON CommonMinimumMatch Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.CommonTerms

Generic CommonMinimumMatch Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.CommonTerms

Associated Types

type Rep CommonMinimumMatch :: Type -> Type #

Show CommonMinimumMatch Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.CommonTerms

Eq CommonMinimumMatch Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.CommonTerms

type Rep CommonMinimumMatch Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.CommonTerms

type Rep CommonMinimumMatch = D1 ('MetaData "CommonMinimumMatch" "Database.Bloodhound.Internal.Versions.Common.Types.Query.CommonTerms" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "CommonMinimumMatchHighLow" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MinimumMatchHighLow)) :+: C1 ('MetaCons "CommonMinimumMatch" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MinimumMatch)))

data CommonTermsQuery Source #

Instances

Instances details
FromJSON CommonTermsQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.CommonTerms

ToJSON CommonTermsQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.CommonTerms

Generic CommonTermsQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.CommonTerms

Associated Types

type Rep CommonTermsQuery :: Type -> Type #

Show CommonTermsQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.CommonTerms

Eq CommonTermsQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.CommonTerms

type Rep CommonTermsQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query.CommonTerms

type Rep CommonTermsQuery = D1 ('MetaData "CommonTermsQuery" "Database.Bloodhound.Internal.Versions.Common.Types.Query.CommonTerms" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "CommonTermsQuery" 'PrefixI 'True) (((S1 ('MetaSel ('Just "commonField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FieldName) :*: S1 ('MetaSel ('Just "commonQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 QueryString)) :*: (S1 ('MetaSel ('Just "commonCutoffFrequency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CutoffFrequency) :*: S1 ('MetaSel ('Just "commonLowFreqOperator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BooleanOperator))) :*: ((S1 ('MetaSel ('Just "commonHighFreqOperator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BooleanOperator) :*: S1 ('MetaSel ('Just "commonMinimumShouldMatch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe CommonMinimumMatch))) :*: (S1 ('MetaSel ('Just "commonBoost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Boost)) :*: (S1 ('MetaSel ('Just "commonAnalyzer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Analyzer)) :*: S1 ('MetaSel ('Just "commonDisableCoord") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe DisableCoord)))))))

data MinimumMatchHighLow Source #

data BoolMatch Source #

Instances

Instances details
FromJSON BoolMatch Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

ToJSON BoolMatch Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic BoolMatch Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep BoolMatch :: Type -> Type #

Show BoolMatch Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq BoolMatch Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep BoolMatch Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

data BoolQuery Source #

Instances

Instances details
FromJSON BoolQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

ToJSON BoolQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic BoolQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep BoolQuery :: Type -> Type #

Show BoolQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq BoolQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep BoolQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep BoolQuery = D1 ('MetaData "BoolQuery" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "BoolQuery" 'PrefixI 'True) ((S1 ('MetaSel ('Just "boolQueryMustMatch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Query]) :*: (S1 ('MetaSel ('Just "boolQueryFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Filter]) :*: S1 ('MetaSel ('Just "boolQueryMustNotMatch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Query]))) :*: ((S1 ('MetaSel ('Just "boolQueryShouldMatch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Query]) :*: S1 ('MetaSel ('Just "boolQueryMinimumShouldMatch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MinimumMatch))) :*: (S1 ('MetaSel ('Just "boolQueryBoost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Boost)) :*: S1 ('MetaSel ('Just "boolQueryDisableCoord") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe DisableCoord))))))

data BoostingQuery Source #

Instances

Instances details
FromJSON BoostingQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

ToJSON BoostingQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic BoostingQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep BoostingQuery :: Type -> Type #

Show BoostingQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq BoostingQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep BoostingQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep BoostingQuery = D1 ('MetaData "BoostingQuery" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "BoostingQuery" 'PrefixI 'True) (S1 ('MetaSel ('Just "positiveQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Query) :*: (S1 ('MetaSel ('Just "negativeQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Query) :*: S1 ('MetaSel ('Just "negativeBoost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Boost))))

type Cache = Bool Source #

Cache is for telling ES whether it should cache a Filter not. Querys cannot be cached.

data ComponentFunctionScoreFunction Source #

Instances

Instances details
FromJSON ComponentFunctionScoreFunction Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

ToJSON ComponentFunctionScoreFunction Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic ComponentFunctionScoreFunction Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep ComponentFunctionScoreFunction :: Type -> Type #

Show ComponentFunctionScoreFunction Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq ComponentFunctionScoreFunction Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep ComponentFunctionScoreFunction Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep ComponentFunctionScoreFunction = D1 ('MetaData "ComponentFunctionScoreFunction" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "ComponentFunctionScoreFunction" 'PrefixI 'True) (S1 ('MetaSel ('Just "componentScoreFunctionFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Filter)) :*: (S1 ('MetaSel ('Just "componentScoreFunction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FunctionScoreFunction) :*: S1 ('MetaSel ('Just "componentScoreFunctionWeight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Weight)))))

data DisMaxQuery Source #

Instances

Instances details
FromJSON DisMaxQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

ToJSON DisMaxQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic DisMaxQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep DisMaxQuery :: Type -> Type #

Show DisMaxQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq DisMaxQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep DisMaxQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep DisMaxQuery = D1 ('MetaData "DisMaxQuery" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "DisMaxQuery" 'PrefixI 'True) (S1 ('MetaSel ('Just "disMaxQueries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Query]) :*: (S1 ('MetaSel ('Just "disMaxTiebreaker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Tiebreaker) :*: S1 ('MetaSel ('Just "disMaxBoost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Boost)))))

data Distance Source #

Constructors

Distance 

Instances

Instances details
FromJSON Distance Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

ToJSON Distance Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic Distance Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep Distance :: Type -> Type #

Methods

from :: Distance -> Rep Distance x #

to :: Rep Distance x -> Distance #

Show Distance Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq Distance Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep Distance Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep Distance = D1 ('MetaData "Distance" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "Distance" 'PrefixI 'True) (S1 ('MetaSel ('Just "coefficient") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: S1 ('MetaSel ('Just "unit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DistanceUnit)))

data DistanceRange Source #

Instances

Instances details
Generic DistanceRange Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep DistanceRange :: Type -> Type #

Show DistanceRange Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq DistanceRange Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep DistanceRange Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep DistanceRange = D1 ('MetaData "DistanceRange" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "DistanceRange" 'PrefixI 'True) (S1 ('MetaSel ('Just "distanceFrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Distance) :*: S1 ('MetaSel ('Just "distanceTo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Distance)))

data DistanceType Source #

Constructors

Arc 
SloppyArc 
Plane 

Instances

Instances details
FromJSON DistanceType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

ToJSON DistanceType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic DistanceType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep DistanceType :: Type -> Type #

Show DistanceType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq DistanceType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep DistanceType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep DistanceType = D1 ('MetaData "DistanceType" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "Arc" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SloppyArc" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Plane" 'PrefixI 'False) (U1 :: Type -> Type)))

data DistanceUnit Source #

Instances

Instances details
FromJSON DistanceUnit Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

ToJSON DistanceUnit Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic DistanceUnit Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep DistanceUnit :: Type -> Type #

Show DistanceUnit Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq DistanceUnit Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep DistanceUnit Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep DistanceUnit = D1 ('MetaData "DistanceUnit" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (((C1 ('MetaCons "Miles" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Yards" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Feet" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Inches" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "Kilometers" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Meters" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Centimeters" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Millimeters" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NauticalMiles" 'PrefixI 'False) (U1 :: Type -> Type)))))

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

data FunctionScoreFunctions Source #

Instances

Instances details
Generic FunctionScoreFunctions Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep FunctionScoreFunctions :: Type -> Type #

Show FunctionScoreFunctions Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq FunctionScoreFunctions Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep FunctionScoreFunctions Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep FunctionScoreFunctions = D1 ('MetaData "FunctionScoreFunctions" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "FunctionScoreSingle" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FunctionScoreFunction)) :+: C1 ('MetaCons "FunctionScoreMultiple" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty ComponentFunctionScoreFunction))))

data FunctionScoreQuery Source #

Instances

Instances details
FromJSON FunctionScoreQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

ToJSON FunctionScoreQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic FunctionScoreQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep FunctionScoreQuery :: Type -> Type #

Show FunctionScoreQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq FunctionScoreQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep FunctionScoreQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep FunctionScoreQuery = D1 ('MetaData "FunctionScoreQuery" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "FunctionScoreQuery" 'PrefixI 'True) ((S1 ('MetaSel ('Just "functionScoreQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Query)) :*: (S1 ('MetaSel ('Just "functionScoreBoost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Boost)) :*: S1 ('MetaSel ('Just "functionScoreFunctions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FunctionScoreFunctions))) :*: ((S1 ('MetaSel ('Just "functionScoreMaxBoost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Boost)) :*: S1 ('MetaSel ('Just "functionScoreBoostMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe BoostMode))) :*: (S1 ('MetaSel ('Just "functionScoreMinScore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Score) :*: S1 ('MetaSel ('Just "functionScoreScoreMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ScoreMode))))))

data GeoBoundingBox Source #

Constructors

GeoBoundingBox 

Instances

Instances details
FromJSON GeoBoundingBox Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

ToJSON GeoBoundingBox Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic GeoBoundingBox Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep GeoBoundingBox :: Type -> Type #

Show GeoBoundingBox Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq GeoBoundingBox Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep GeoBoundingBox Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep GeoBoundingBox = D1 ('MetaData "GeoBoundingBox" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "GeoBoundingBox" 'PrefixI 'True) (S1 ('MetaSel ('Just "topLeft") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LatLon) :*: S1 ('MetaSel ('Just "bottomRight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LatLon)))

data GeoBoundingBoxConstraint Source #

Instances

Instances details
FromJSON GeoBoundingBoxConstraint Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

ToJSON GeoBoundingBoxConstraint Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic GeoBoundingBoxConstraint Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep GeoBoundingBoxConstraint :: Type -> Type #

Show GeoBoundingBoxConstraint Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq GeoBoundingBoxConstraint Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep GeoBoundingBoxConstraint Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep GeoBoundingBoxConstraint = D1 ('MetaData "GeoBoundingBoxConstraint" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "GeoBoundingBoxConstraint" 'PrefixI 'True) ((S1 ('MetaSel ('Just "geoBBField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FieldName) :*: S1 ('MetaSel ('Just "constraintBox") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GeoBoundingBox)) :*: (S1 ('MetaSel ('Just "bbConstraintcache") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Cache) :*: S1 ('MetaSel ('Just "geoType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GeoFilterType))))

data GeoFilterType Source #

Instances

Instances details
FromJSON GeoFilterType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

ToJSON GeoFilterType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic GeoFilterType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep GeoFilterType :: Type -> Type #

Show GeoFilterType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq GeoFilterType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep GeoFilterType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep GeoFilterType = D1 ('MetaData "GeoFilterType" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "GeoFilterMemory" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GeoFilterIndexed" 'PrefixI 'False) (U1 :: Type -> Type))

data GeoPoint Source #

Constructors

GeoPoint 

Instances

Instances details
ToJSON GeoPoint Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic GeoPoint Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep GeoPoint :: Type -> Type #

Methods

from :: GeoPoint -> Rep GeoPoint x #

to :: Rep GeoPoint x -> GeoPoint #

Show GeoPoint Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq GeoPoint Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep GeoPoint Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep GeoPoint = D1 ('MetaData "GeoPoint" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "GeoPoint" 'PrefixI 'True) (S1 ('MetaSel ('Just "geoField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FieldName) :*: S1 ('MetaSel ('Just "latLon") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LatLon)))

data HasChildQuery Source #

Instances

Instances details
FromJSON HasChildQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

ToJSON HasChildQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic HasChildQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep HasChildQuery :: Type -> Type #

Show HasChildQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq HasChildQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep HasChildQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep HasChildQuery = D1 ('MetaData "HasChildQuery" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "HasChildQuery" 'PrefixI 'True) ((S1 ('MetaSel ('Just "hasChildQueryType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelationName) :*: (S1 ('MetaSel ('Just "hasChildQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Query) :*: S1 ('MetaSel ('Just "hasChildQueryScoreType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ScoreType)))) :*: (S1 ('MetaSel ('Just "hasChildIgnoreUnmappped") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe IgnoreUnmapped)) :*: (S1 ('MetaSel ('Just "hasChildMinChildren") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MinChildren)) :*: S1 ('MetaSel ('Just "hasChildMaxChildren") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MaxChildren))))))

data HasParentQuery Source #

Instances

Instances details
FromJSON HasParentQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

ToJSON HasParentQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic HasParentQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep HasParentQuery :: Type -> Type #

Show HasParentQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq HasParentQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep HasParentQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep HasParentQuery = D1 ('MetaData "HasParentQuery" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "HasParentQuery" 'PrefixI 'True) ((S1 ('MetaSel ('Just "hasParentQueryType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelationName) :*: S1 ('MetaSel ('Just "hasParentQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Query)) :*: (S1 ('MetaSel ('Just "hasParentQueryScore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe AggregateParentScore)) :*: S1 ('MetaSel ('Just "hasParentIgnoreUnmapped") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe IgnoreUnmapped)))))

data IndicesQuery Source #

Instances

Instances details
FromJSON IndicesQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

ToJSON IndicesQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic IndicesQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep IndicesQuery :: Type -> Type #

Show IndicesQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq IndicesQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep IndicesQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep IndicesQuery = D1 ('MetaData "IndicesQuery" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "IndicesQuery" 'PrefixI 'True) (S1 ('MetaSel ('Just "indicesQueryIndices") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [IndexName]) :*: (S1 ('MetaSel ('Just "indicesQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Query) :*: S1 ('MetaSel ('Just "indicesQueryNoMatch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Query)))))

data InnerHits Source #

Instances

Instances details
FromJSON InnerHits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

ToJSON InnerHits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic InnerHits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep InnerHits :: Type -> Type #

Show InnerHits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq InnerHits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep InnerHits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep InnerHits = D1 ('MetaData "InnerHits" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "InnerHits" 'PrefixI 'True) (S1 ('MetaSel ('Just "innerHitsFrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "innerHitsSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer))))

data LatLon Source #

Constructors

LatLon 

Fields

Instances

Instances details
FromJSON LatLon Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

ToJSON LatLon Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic LatLon Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep LatLon :: Type -> Type #

Methods

from :: LatLon -> Rep LatLon x #

to :: Rep LatLon x -> LatLon #

Show LatLon Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq LatLon Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Methods

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

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

type Rep LatLon Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep LatLon = D1 ('MetaData "LatLon" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "LatLon" 'PrefixI 'True) (S1 ('MetaSel ('Just "lat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: S1 ('MetaSel ('Just "lon") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

data NestedQuery Source #

Instances

Instances details
FromJSON NestedQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

ToJSON NestedQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic NestedQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep NestedQuery :: Type -> Type #

Show NestedQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq NestedQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep NestedQuery Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep NestedQuery = D1 ('MetaData "NestedQuery" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "NestedQuery" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nestedQueryPath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 QueryPath) :*: S1 ('MetaSel ('Just "nestedQueryScoreType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ScoreType)) :*: (S1 ('MetaSel ('Just "nestedQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Query) :*: S1 ('MetaSel ('Just "nestedQueryInnerHits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe InnerHits)))))

data OptimizeBbox Source #

Instances

Instances details
FromJSON OptimizeBbox Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

ToJSON OptimizeBbox Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic OptimizeBbox Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep OptimizeBbox :: Type -> Type #

Show OptimizeBbox Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq OptimizeBbox Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep OptimizeBbox Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep OptimizeBbox = D1 ('MetaData "OptimizeBbox" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "OptimizeGeoFilterType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GeoFilterType)) :+: C1 ('MetaCons "NoOptimizeBbox" 'PrefixI 'False) (U1 :: Type -> Type))

data Query Source #

Instances

Instances details
FromJSON Query Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

ToJSON Query Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic Query Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep Query :: Type -> Type #

Methods

from :: Query -> Rep Query x #

to :: Rep Query x -> Query #

Show Query Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Methods

showsPrec :: Int -> Query -> ShowS #

show :: Query -> String #

showList :: [Query] -> ShowS #

Eq Query Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Methods

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

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

type Rep Query Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep Query = D1 ('MetaData "Query" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) ((((C1 ('MetaCons "TermQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Term) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Boost))) :+: (C1 ('MetaCons "TermsQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Key) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty Text))) :+: C1 ('MetaCons "QueryMatchQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MatchQuery)))) :+: ((C1 ('MetaCons "QueryMultiMatchQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MultiMatchQuery)) :+: C1 ('MetaCons "QueryBoolQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BoolQuery))) :+: (C1 ('MetaCons "QueryBoostingQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BoostingQuery)) :+: C1 ('MetaCons "QueryCommonTermsQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CommonTermsQuery))))) :+: ((C1 ('MetaCons "ConstantScoreQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Query) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Boost)) :+: (C1 ('MetaCons "QueryFunctionScoreQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FunctionScoreQuery)) :+: C1 ('MetaCons "QueryDisMaxQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DisMaxQuery)))) :+: ((C1 ('MetaCons "QueryFuzzyLikeThisQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FuzzyLikeThisQuery)) :+: C1 ('MetaCons "QueryFuzzyLikeFieldQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FuzzyLikeFieldQuery))) :+: (C1 ('MetaCons "QueryFuzzyQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FuzzyQuery)) :+: C1 ('MetaCons "QueryHasChildQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 HasChildQuery)))))) :+: (((C1 ('MetaCons "QueryHasParentQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 HasParentQuery)) :+: (C1 ('MetaCons "IdsQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [DocId])) :+: C1 ('MetaCons "QueryIndicesQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IndicesQuery)))) :+: ((C1 ('MetaCons "MatchAllQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Boost))) :+: C1 ('MetaCons "QueryMoreLikeThisQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MoreLikeThisQuery))) :+: (C1 ('MetaCons "QueryMoreLikeThisFieldQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MoreLikeThisFieldQuery)) :+: C1 ('MetaCons "QueryNestedQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NestedQuery))))) :+: (((C1 ('MetaCons "QueryPrefixQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PrefixQuery)) :+: C1 ('MetaCons "QueryQueryStringQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 QueryStringQuery))) :+: (C1 ('MetaCons "QuerySimpleQueryStringQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SimpleQueryStringQuery)) :+: C1 ('MetaCons "QueryRangeQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RangeQuery)))) :+: ((C1 ('MetaCons "QueryRegexpQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RegexpQuery)) :+: C1 ('MetaCons "QueryExistsQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FieldName))) :+: (C1 ('MetaCons "QueryMatchNoneQuery" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "QueryWildcardQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 WildcardQuery)))))))

data RangeExecution Source #

Instances

Instances details
FromJSON RangeExecution Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

ToJSON RangeExecution Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic RangeExecution Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep RangeExecution :: Type -> Type #

Show RangeExecution Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq RangeExecution Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep RangeExecution Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep RangeExecution = D1 ('MetaData "RangeExecution" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "RangeExecutionIndex" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RangeExecutionFielddata" 'PrefixI 'False) (U1 :: Type -> Type))

data ScoreType Source #

Instances

Instances details
FromJSON ScoreType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

ToJSON ScoreType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic ScoreType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep ScoreType :: Type -> Type #

Show ScoreType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Eq ScoreType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep ScoreType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep ScoreType = D1 ('MetaData "ScoreType" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) ((C1 ('MetaCons "ScoreTypeMax" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ScoreTypeSum" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ScoreTypeAvg" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ScoreTypeNone" 'PrefixI 'False) (U1 :: Type -> Type)))

data Term Source #

Constructors

Term 

Fields

Instances

Instances details
FromJSON Term Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

ToJSON Term Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Generic Term Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Associated Types

type Rep Term :: Type -> Type #

Methods

from :: Term -> Rep Term x #

to :: Rep Term x -> Term #

Show Term Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Methods

showsPrec :: Int -> Term -> ShowS #

show :: Term -> String #

showList :: [Term] -> ShowS #

Eq Term Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

Methods

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

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

type Rep Term Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Query

type Rep Term = D1 ('MetaData "Term" "Database.Bloodhound.Internal.Versions.Common.Types.Query" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "Term" 'PrefixI 'True) (S1 ('MetaSel ('Just "termField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Key) :*: S1 ('MetaSel ('Just "termValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype EsAddress Source #

A quirky address format used throughout Elasticsearch. An example would be inet[/1.1.1.1:9200]. inet may be a placeholder for a FQDN.

Constructors

EsAddress 

Fields

newtype EsPassword Source #

Password type used for HTTP Basic authentication. See basicAuthHook.

Constructors

EsPassword 

Fields

newtype EsUsername Source #

Username type used for HTTP Basic authentication. See basicAuthHook.

Constructors

EsUsername 

Fields

data InitialShardCount Source #

Instances

Instances details
FromJSON InitialShardCount Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

ToJSON InitialShardCount Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

Generic InitialShardCount Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

Associated Types

type Rep InitialShardCount :: Type -> Type #

Show InitialShardCount Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

Eq InitialShardCount Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

type Rep InitialShardCount Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

type Rep InitialShardCount = D1 ('MetaData "InitialShardCount" "Database.Bloodhound.Internal.Versions.Common.Types.Nodes" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) ((C1 ('MetaCons "QuorumShards" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "QuorumMinus1Shards" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "FullShards" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "FullMinus1Shards" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ExplicitShards" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))))

newtype JVMVersion Source #

We cannot parse JVM version numbers and we're not going to try.

Constructors

JVMVersion 

Fields

newtype NetworkInterfaceName Source #

data NodeIndicesStats Source #

Constructors

NodeIndicesStats 

Fields

newtype NodeName Source #

A human-readable node name that is supplied by the user in the node config or automatically generated by Elasticsearch.

Constructors

NodeName 

Fields

data NodeSelection Source #

NodeSelection is used for most cluster APIs. See here for more details.

Constructors

LocalNode

Whatever node receives this request

NodeList (NonEmpty NodeSelector) 
AllNodes 

data NodeSelector Source #

An exact match or pattern to identify a node. Note that All of these options support wildcarding, so your node name, server, attr name can all contain * characters to be a fuzzy match.

Constructors

NodeByName NodeName 
NodeByFullNodeId FullNodeId 
NodeByHost Server

e.g. 10.0.0.1 or even 10.0.0.*

NodeByAttribute NodeAttrName Text

NodeAttrName can be a pattern, e.g. rack*. The value can too.

newtype PID Source #

Constructors

PID 

Fields

data Version Source #

Version is embedded in Status

Instances

Instances details
FromJSON Version Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

ToJSON Version Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

Generic Version Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

Associated Types

type Rep Version :: Type -> Type #

Methods

from :: Version -> Rep Version x #

to :: Rep Version x -> Version #

Show Version Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

Eq Version Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

Methods

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

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

type Rep Version Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

type Rep Version = D1 ('MetaData "Version" "Database.Bloodhound.Internal.Versions.Common.Types.Nodes" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "Version" 'PrefixI 'True) ((S1 ('MetaSel ('Just "number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VersionNumber) :*: S1 ('MetaSel ('Just "build_hash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuildHash)) :*: (S1 ('MetaSel ('Just "build_date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime) :*: (S1 ('MetaSel ('Just "build_snapshot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "lucene_version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VersionNumber)))))

newtype VersionNumber Source #

Traditional software versioning number

Constructors

VersionNumber 

Instances

Instances details
FromJSON VersionNumber Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

ToJSON VersionNumber Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

Show VersionNumber Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

Eq VersionNumber Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

Ord VersionNumber Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

Optics

newtype DocId Source #

DocId is a generic wrapper value for expressing unique Document IDs. Can be set by the user or created by ES itself. Often used in client functions for poking at specific documents.

Constructors

DocId Text 

newtype RelationName Source #

RelationName describes a relation role between parend and child Documents in a Join relarionship: https://www.elastic.co/guide/en/elasticsearch/reference/current/parent-join.html

Constructors

RelationName Text 

newtype Lenient Source #

Lenient, if set to true, will cause format based failures to be ignored. I don't know what the bloody default is, Elasticsearch documentation didn't say what it was. Let me know if you figure it out.

Constructors

Lenient Bool 

newtype AllowLeadingWildcard Source #

Allowing a wildcard at the beginning of a word (eg "*ing") is particularly heavy, because all terms in the index need to be examined, just in case they match. Leading wildcards can be disabled by setting AllowLeadingWildcard to false.

newtype MinChildren Source #

Maximum number of child documents that match the query allowed for a returned parent document. If the parent document exceeds this limit, it is excluded from the search results.

Constructors

MinChildren Int 

newtype MaxChildren Source #

Minimum number of child documents that match the query required to match the query for a returned parent document. If the parent document does not meet this limit, it is excluded from the search results.

Constructors

MaxChildren Int 

newtype POSIXMS Source #

Newtype wrapper to parse ES's concerning tendency to in some APIs return a floating point number of milliseconds since epoch ಠ_ಠ

Constructors

POSIXMS 

Fields

data IndexName Source #

IndexName is used to describe which index to querycreatedelete

Instances

Instances details
FromJSON IndexName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Newtypes

FromJSONKey IndexName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Newtypes

ToJSON IndexName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Newtypes

ToJSONKey IndexName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Newtypes

Semigroup IndexName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Newtypes

Generic IndexName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Newtypes

Associated Types

type Rep IndexName :: Type -> Type #

Show IndexName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Newtypes

Eq IndexName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Newtypes

Ord IndexName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Newtypes

Hashable IndexName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Newtypes

type Rep IndexName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Newtypes

type Rep IndexName = D1 ('MetaData "IndexName" "Database.Bloodhound.Internal.Versions.Common.Types.Newtypes" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'True) (C1 ('MetaCons "IndexName" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype MaybeNA a Source #

Constructors

MaybeNA 

Fields

Instances

Instances details
Applicative MaybeNA Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Newtypes

Methods

pure :: a -> MaybeNA a #

(<*>) :: MaybeNA (a -> b) -> MaybeNA a -> MaybeNA b #

liftA2 :: (a -> b -> c) -> MaybeNA a -> MaybeNA b -> MaybeNA c #

(*>) :: MaybeNA a -> MaybeNA b -> MaybeNA b #

(<*) :: MaybeNA a -> MaybeNA b -> MaybeNA a #

Functor MaybeNA Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Newtypes

Methods

fmap :: (a -> b) -> MaybeNA a -> MaybeNA b #

(<$) :: a -> MaybeNA b -> MaybeNA a #

Monad MaybeNA Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Newtypes

Methods

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

(>>) :: MaybeNA a -> MaybeNA b -> MaybeNA b #

return :: a -> MaybeNA a #

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

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Newtypes

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

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Newtypes

Methods

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

show :: MaybeNA a -> String #

showList :: [MaybeNA a] -> ShowS #

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

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Newtypes

Methods

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

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

newtype MS Source #

Milliseconds

Constructors

MS NominalDiffTime 

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

Instances

Instances details
FromJSON AllocationPolicy Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

ToJSON AllocationPolicy Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Generic AllocationPolicy Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Associated Types

type Rep AllocationPolicy :: Type -> Type #

Show AllocationPolicy Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Eq AllocationPolicy Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep AllocationPolicy Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep AllocationPolicy = D1 ('MetaData "AllocationPolicy" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) ((C1 ('MetaCons "AllocAll" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AllocPrimaries" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "AllocNewPrimaries" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AllocNone" 'PrefixI 'False) (U1 :: Type -> Type)))

data CompoundFormat Source #

Constructors

CompoundFileFormat Bool 
MergeSegmentVsTotalIndex Double

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

Instances

Instances details
FromJSON CompoundFormat Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

ToJSON CompoundFormat Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Generic CompoundFormat Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Associated Types

type Rep CompoundFormat :: Type -> Type #

Show CompoundFormat Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Eq CompoundFormat Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep CompoundFormat Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep CompoundFormat = D1 ('MetaData "CompoundFormat" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "CompoundFileFormat" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "MergeSegmentVsTotalIndex" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

data Compression Source #

Constructors

CompressionDefault

Compress with LZ4

CompressionBest

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

Instances

Instances details
FromJSON Compression Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

ToJSON Compression Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Generic Compression Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Associated Types

type Rep Compression :: Type -> Type #

Show Compression Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Eq Compression Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep Compression Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep Compression = D1 ('MetaData "Compression" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "CompressionDefault" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CompressionBest" 'PrefixI 'False) (U1 :: Type -> Type))

data FSType Source #

Constructors

FSSimple 
FSBuffered 

Instances

Instances details
FromJSON FSType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

ToJSON FSType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Generic FSType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Associated Types

type Rep FSType :: Type -> Type #

Methods

from :: FSType -> Rep FSType x #

to :: Rep FSType x -> FSType #

Show FSType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Eq FSType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Methods

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

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

type Rep FSType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep FSType = D1 ('MetaData "FSType" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "FSSimple" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FSBuffered" 'PrefixI 'False) (U1 :: Type -> Type))

data ForceMergeIndexSettings Source #

Constructors

ForceMergeIndexSettings 

Fields

  • maxNumSegments :: Maybe Int

    Number of segments to optimize to. 1 will fully optimize the index. If omitted, the default behavior is to only optimize if the server deems it necessary.

  • onlyExpungeDeletes :: Bool

    Should the optimize process only expunge segments with deletes in them? If the purpose of the optimization is to free disk space, this should be set to True.

  • flushAfterOptimize :: Bool

    Should a flush be performed after the optimize.

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

Instances

Instances details
FromJSON IndexMappingsLimits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

ToJSON IndexMappingsLimits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Generic IndexMappingsLimits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Associated Types

type Rep IndexMappingsLimits :: Type -> Type #

Show IndexMappingsLimits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Eq IndexMappingsLimits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep IndexMappingsLimits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep IndexMappingsLimits = D1 ('MetaData "IndexMappingsLimits" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "IndexMappingsLimits" 'PrefixI 'True) ((S1 ('MetaSel ('Just "indexMappingsLimitDepth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "indexMappingsLimitNestedFields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "indexMappingsLimitNestedObjects") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "indexMappingsLimitFieldNameLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)))))

data IndexSelection Source #

IndexSelection is used for APIs which take a single index, a list of indexes, or the special _all index.

data IndexSettings Source #

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

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

Instances

Instances details
FromJSON IndexSettings Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

ToJSON IndexSettings Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Generic IndexSettings Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Associated Types

type Rep IndexSettings :: Type -> Type #

Show IndexSettings Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Eq IndexSettings Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep IndexSettings Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep IndexSettings = D1 ('MetaData "IndexSettings" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "IndexSettings" 'PrefixI 'True) (S1 ('MetaSel ('Just "indexShards") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShardCount) :*: (S1 ('MetaSel ('Just "indexReplicas") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplicaCount) :*: S1 ('MetaSel ('Just "indexMappingsLimits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IndexMappingsLimits))))

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

Support for type reification of Mappings is currently incomplete, for now the mapping API verbiage expects a ToJSONable blob.

Indexes have mappings, mappings are schemas for the documents contained in the index. I'd recommend having only one mapping per index, always having a mapping, and keeping different kinds of documents separated if possible.

Constructors

Mapping 

newtype SearchAliasRouting Source #

Instances

Instances details
FromJSON SearchAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

ToJSON SearchAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Generic SearchAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Associated Types

type Rep SearchAliasRouting :: Type -> Type #

Show SearchAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Eq SearchAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep SearchAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep SearchAliasRouting = D1 ('MetaData "SearchAliasRouting" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'True) (C1 ('MetaCons "SearchAliasRouting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty RoutingValue))))

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.elastic.co/guide/en/elasticsearch/reference/current/indices-status.html#indices-status

Constructors

Status 

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

Instances

Instances details
FromJSON UpdatableIndexSetting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

ToJSON UpdatableIndexSetting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Generic UpdatableIndexSetting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Associated Types

type Rep UpdatableIndexSetting :: Type -> Type #

Show UpdatableIndexSetting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Eq UpdatableIndexSetting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep UpdatableIndexSetting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep UpdatableIndexSetting = D1 ('MetaData "UpdatableIndexSetting" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (((((C1 ('MetaCons "NumberOfReplicas" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplicaCount)) :+: C1 ('MetaCons "AutoExpandReplicas" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplicaBounds))) :+: (C1 ('MetaCons "BlocksReadOnly" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "BlocksRead" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :+: ((C1 ('MetaCons "BlocksWrite" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "BlocksMetaData" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: (C1 ('MetaCons "RefreshInterval" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NominalDiffTime)) :+: C1 ('MetaCons "IndexConcurrency" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))))) :+: (((C1 ('MetaCons "FailOnMergeFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "TranslogFlushThresholdOps" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :+: (C1 ('MetaCons "TranslogFlushThresholdSize" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bytes)) :+: C1 ('MetaCons "TranslogFlushThresholdPeriod" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NominalDiffTime)))) :+: ((C1 ('MetaCons "TranslogDisableFlush" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "CacheFilterMaxSize" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bytes)))) :+: (C1 ('MetaCons "CacheFilterExpire" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe NominalDiffTime))) :+: C1 ('MetaCons "GatewaySnapshotInterval" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NominalDiffTime)))))) :+: ((((C1 ('MetaCons "RoutingAllocationInclude" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty NodeAttrFilter))) :+: C1 ('MetaCons "RoutingAllocationExclude" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty NodeAttrFilter)))) :+: (C1 ('MetaCons "RoutingAllocationRequire" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty NodeAttrFilter))) :+: C1 ('MetaCons "RoutingAllocationEnable" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AllocationPolicy)))) :+: ((C1 ('MetaCons "RoutingAllocationShardsPerNode" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShardCount)) :+: C1 ('MetaCons "RecoveryInitialShards" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InitialShardCount))) :+: (C1 ('MetaCons "GCDeletes" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NominalDiffTime)) :+: C1 ('MetaCons "TTLDisablePurge" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))) :+: (((C1 ('MetaCons "TranslogFSType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FSType)) :+: C1 ('MetaCons "CompressionSetting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Compression))) :+: (C1 ('MetaCons "IndexCompoundFormat" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CompoundFormat)) :+: C1 ('MetaCons "IndexCompoundOnFlush" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :+: ((C1 ('MetaCons "WarmerEnabled" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "MappingTotalFieldsLimit" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :+: (C1 ('MetaCons "AnalysisSetting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Analysis)) :+: C1 ('MetaCons "UnassignedNodeLeftDelayedTimeout" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NominalDiffTime)))))))

defaultForceMergeIndexSettings :: ForceMergeIndexSettings Source #

defaultForceMergeIndexSettings implements the default settings that Elasticsearch uses for index optimization. maxNumSegments is Nothing, onlyExpungeDeletes is False, and flushAfterOptimize is True.

defaultIndexDocumentSettings :: IndexDocumentSettings Source #

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

Optics

Optics

Request

data BulkOperation Source #

BulkOperation is a sum type for expressing the four kinds of bulk operation index, create, delete, and update. BulkIndex behaves like an "upsert", BulkCreate will fail if a document already exists at the DocId. Consult the Bulk API documentation for further explanation. Warning: Bulk operations suffixed with Auto rely on Elasticsearch to generate the id. Often, people use auto-generated identifiers when Elasticsearch is the only place that their data is stored. Do not let Elasticsearch be the only place your data is stored. It does not guarantee durability, and it may silently discard data. This issue is discussed further on github.

Constructors

BulkIndex IndexName DocId Value

Create the document, replacing it if it already exists.

BulkIndexAuto IndexName Value

Create a document with an autogenerated id.

BulkIndexEncodingAuto IndexName Encoding

Create a document with an autogenerated id. Use fast JSON encoding.

BulkCreate IndexName DocId Value

Create a document, failing if it already exists.

BulkCreateEncoding IndexName DocId Encoding

Create a document, failing if it already exists. Use fast JSON encoding.

BulkDelete IndexName DocId

Delete the document

BulkUpdate IndexName DocId Value

Update the document, merging the new value with the existing one.

BulkUpsert IndexName DocId UpsertPayload [UpsertActionMetadata]

Update the document if it already exists, otherwise insert it.

Response

Optics

data Analysis Source #

Instances

Instances details
FromJSON Analysis Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

ToJSON Analysis Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Generic Analysis Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Associated Types

type Rep Analysis :: Type -> Type #

Methods

from :: Analysis -> Rep Analysis x #

to :: Rep Analysis x -> Analysis #

Show Analysis Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Eq Analysis Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

type Rep Analysis Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

type Rep Analysis = D1 ('MetaData "Analysis" "Database.Bloodhound.Internal.Versions.Common.Types.Analysis" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "Analysis" 'PrefixI 'True) ((S1 ('MetaSel ('Just "analysisAnalyzer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Text AnalyzerDefinition)) :*: S1 ('MetaSel ('Just "analysisTokenizer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Text TokenizerDefinition))) :*: (S1 ('MetaSel ('Just "analysisTokenFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Text TokenFilterDefinition)) :*: S1 ('MetaSel ('Just "analysisCharFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Text CharFilterDefinition)))))

data AnalyzerDefinition Source #

Instances

Instances details
FromJSON AnalyzerDefinition Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

ToJSON AnalyzerDefinition Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Generic AnalyzerDefinition Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Associated Types

type Rep AnalyzerDefinition :: Type -> Type #

Show AnalyzerDefinition Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Eq AnalyzerDefinition Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

type Rep AnalyzerDefinition Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

type Rep AnalyzerDefinition = D1 ('MetaData "AnalyzerDefinition" "Database.Bloodhound.Internal.Versions.Common.Types.Analysis" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "AnalyzerDefinition" 'PrefixI 'True) (S1 ('MetaSel ('Just "analyzerDefinitionTokenizer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Tokenizer)) :*: (S1 ('MetaSel ('Just "analyzerDefinitionFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TokenFilter]) :*: S1 ('MetaSel ('Just "analyzerDefinitionCharFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CharFilter]))))

data CharFilterDefinition Source #

Character filters are used to preprocess the stream of characters before it is passed to the tokenizer.

data TokenizerDefinition Source #

Instances

Instances details
FromJSON TokenizerDefinition Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

ToJSON TokenizerDefinition Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Generic TokenizerDefinition Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Associated Types

type Rep TokenizerDefinition :: Type -> Type #

Show TokenizerDefinition Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Eq TokenizerDefinition Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

type Rep TokenizerDefinition Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

type Rep TokenizerDefinition = D1 ('MetaData "TokenizerDefinition" "Database.Bloodhound.Internal.Versions.Common.Types.Analysis" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "TokenizerDefinitionNgram" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Ngram)) :+: C1 ('MetaCons "TokenizerDefinitionEdgeNgram" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Ngram)))

data Ngram Source #

Constructors

Ngram 

Instances

Instances details
Generic Ngram Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Associated Types

type Rep Ngram :: Type -> Type #

Methods

from :: Ngram -> Rep Ngram x #

to :: Rep Ngram x -> Ngram #

Show Ngram Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Methods

showsPrec :: Int -> Ngram -> ShowS #

show :: Ngram -> String #

showList :: [Ngram] -> ShowS #

Eq Ngram Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Methods

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

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

type Rep Ngram Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

type Rep Ngram = D1 ('MetaData "Ngram" "Database.Bloodhound.Internal.Versions.Common.Types.Analysis" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "Ngram" 'PrefixI 'True) (S1 ('MetaSel ('Just "ngramMinGram") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "ngramMaxGram") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "ngramTokenChars") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TokenChar]))))

data TokenChar Source #

Instances

Instances details
FromJSON TokenChar Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

ToJSON TokenChar Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Generic TokenChar Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Associated Types

type Rep TokenChar :: Type -> Type #

Show TokenChar Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Eq TokenChar Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

type Rep TokenChar Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

type Rep TokenChar = D1 ('MetaData "TokenChar" "Database.Bloodhound.Internal.Versions.Common.Types.Analysis" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) ((C1 ('MetaCons "TokenLetter" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TokenDigit" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "TokenWhitespace" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "TokenPunctuation" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TokenSymbol" 'PrefixI 'False) (U1 :: Type -> Type))))

data TokenFilterDefinition Source #

Token filters are used to create custom analyzers.

Instances

Instances details
FromJSON TokenFilterDefinition Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

ToJSON TokenFilterDefinition Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Generic TokenFilterDefinition Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Associated Types

type Rep TokenFilterDefinition :: Type -> Type #

Show TokenFilterDefinition Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Eq TokenFilterDefinition Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

type Rep TokenFilterDefinition Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

type Rep TokenFilterDefinition = D1 ('MetaData "TokenFilterDefinition" "Database.Bloodhound.Internal.Versions.Common.Types.Analysis" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (((C1 ('MetaCons "TokenFilterDefinitionLowercase" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Language))) :+: C1 ('MetaCons "TokenFilterDefinitionUppercase" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Language)))) :+: (C1 ('MetaCons "TokenFilterDefinitionApostrophe" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "TokenFilterDefinitionReverse" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TokenFilterDefinitionSnowball" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Language))))) :+: ((C1 ('MetaCons "TokenFilterDefinitionShingle" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Shingle)) :+: (C1 ('MetaCons "TokenFilterDefinitionStemmer" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Language)) :+: C1 ('MetaCons "TokenFilterDefinitionStop" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Either Language [StopWord]))))) :+: (C1 ('MetaCons "TokenFilterDefinitionEdgeNgram" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NgramFilter) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe EdgeNgramFilterSide))) :+: (C1 ('MetaCons "TokenFilterDefinitionNgram" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NgramFilter)) :+: C1 ('MetaCons "TokenFilterTruncate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))))))

data NgramFilter Source #

Instances

Instances details
Generic NgramFilter Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Associated Types

type Rep NgramFilter :: Type -> Type #

Show NgramFilter Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Eq NgramFilter Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

type Rep NgramFilter Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

type Rep NgramFilter = D1 ('MetaData "NgramFilter" "Database.Bloodhound.Internal.Versions.Common.Types.Analysis" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "NgramFilter" 'PrefixI 'True) (S1 ('MetaSel ('Just "ngramFilterMinGram") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "ngramFilterMaxGram") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

data EdgeNgramFilterSide Source #

Instances

Instances details
FromJSON EdgeNgramFilterSide Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

ToJSON EdgeNgramFilterSide Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Generic EdgeNgramFilterSide Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Associated Types

type Rep EdgeNgramFilterSide :: Type -> Type #

Show EdgeNgramFilterSide Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Eq EdgeNgramFilterSide Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

type Rep EdgeNgramFilterSide Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

type Rep EdgeNgramFilterSide = D1 ('MetaData "EdgeNgramFilterSide" "Database.Bloodhound.Internal.Versions.Common.Types.Analysis" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "EdgeNgramFilterSideFront" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EdgeNgramFilterSideBack" 'PrefixI 'False) (U1 :: Type -> Type))

data Language Source #

The set of languages that can be passed to various analyzers, filters, etc. in Elasticsearch. Most data types in this module that have a Language field are actually only actually to handle a subset of these languages. Consult the official Elasticsearch documentation to see what is actually supported.

Instances

Instances details
FromJSON Language Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

ToJSON Language Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Generic Language Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Associated Types

type Rep Language :: Type -> Type #

Methods

from :: Language -> Rep Language x #

to :: Rep Language x -> Language #

Show Language Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Eq Language Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

type Rep Language Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

type Rep Language = D1 ('MetaData "Language" "Database.Bloodhound.Internal.Versions.Common.Types.Analysis" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (((((C1 ('MetaCons "Arabic" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Armenian" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Basque" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bengali" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "Brazilian" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bulgarian" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Catalan" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Cjk" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Czech" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "Danish" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Dutch" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "English" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Finnish" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "French" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "Galician" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "German" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "German2" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Greek" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Hindi" 'PrefixI 'False) (U1 :: Type -> Type)))))) :+: ((((C1 ('MetaCons "Hungarian" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Indonesian" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Irish" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Italian" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "Kp" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Latvian" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Lithuanian" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Lovins" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Norwegian" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "Persian" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Porter" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Portuguese" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Romanian" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Russian" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "Sorani" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Spanish" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Swedish" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Thai" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Turkish" 'PrefixI 'False) (U1 :: Type -> Type)))))))

data Shingle Source #

Instances

Instances details
Generic Shingle Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Associated Types

type Rep Shingle :: Type -> Type #

Methods

from :: Shingle -> Rep Shingle x #

to :: Rep Shingle x -> Shingle #

Show Shingle Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Eq Shingle Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

Methods

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

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

type Rep Shingle Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Analysis

type Rep Shingle = D1 ('MetaData "Shingle" "Database.Bloodhound.Internal.Versions.Common.Types.Analysis" "bloodhound-0.23.0.0-FmK0xPJsnw7U3vt3yN5OK" 'False) (C1 ('MetaCons "Shingle" 'PrefixI 'True) ((S1 ('MetaSel ('Just "shingleMaxSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "shingleMinSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "shingleOutputUnigrams") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: (S1 ('MetaSel ('Just "shingleOutputUnigramsIfNoShingles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "shingleTokenSeparator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "shingleFillerToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))))

data DateMathAnchor Source #

Starting point for a date range. This along with the DateMathModifiers gets you the date ES will start from.

Constructors

DMNow 
DMDate Day 

newtype DocVersion Source #

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

Constructors

DocVersion 

Instances

Instances details
FromJSON DocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client.Doc

ToJSON DocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client.Doc

Bounded DocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client.Doc

Enum DocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client.Doc

Show DocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client.Doc

Eq DocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client.Doc

Ord DocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client.Doc

newtype ExternalDocVersion Source #

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

Instances

Instances details
ToJSON ExternalDocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client.Doc

Bounded ExternalDocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client.Doc

Enum ExternalDocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client.Doc

Show ExternalDocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client.Doc

Eq ExternalDocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client.Doc

Ord ExternalDocVersion Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client.Doc

mkDocVersion :: Int -> Maybe DocVersion Source #

Smart constructor for in-range doc version

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.

Request

data BHRequest parsingContext responseBody Source #

Request upon Elasticsearch's server.

parsingContext is a phantom type for the expected status-dependancy responseBody is a phantom type for the expected result

Instances

Instances details
Functor (BHRequest parsingContext) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client.BHRequest

Methods

fmap :: (a -> b) -> BHRequest parsingContext a -> BHRequest parsingContext b #

(<$) :: a -> BHRequest parsingContext b -> BHRequest parsingContext a #

mkFullRequest :: (ParseBHResponse parsingContext, FromJSON responseBody) => Method -> Endpoint -> ByteString -> BHRequest parsingContext responseBody Source #

BHRequest with a body

mkSimpleRequest :: (ParseBHResponse parsingContext, FromJSON responseBody) => Method -> Endpoint -> BHRequest parsingContext responseBody Source #

BHRequest without a body

newtype Server Source #

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

Constructors

Server Text 

data Endpoint Source #

Endpoint represents an url before being built

Constructors

Endpoint 

mkEndpoint :: [Text] -> Endpoint Source #

Create an Endpoint from a list of url parts

withQueries :: Endpoint -> [(Text, Maybe Text)] -> Endpoint Source #

Severely dumbed down query renderer. Assumes your data doesn't need any encoding

getEndpoint :: Server -> Endpoint -> Text Source #

Generate the raw URL

withBHResponse :: forall a parsingContext b. (Either EsProtocolException (ParsedEsResponse a) -> BHResponse StatusDependant a -> b) -> BHRequest parsingContext a -> BHRequest StatusDependant b Source #

Work with the full BHResponse

withBHResponse_ :: forall a parsingContext b. (BHResponse StatusDependant a -> b) -> BHRequest parsingContext a -> BHRequest StatusDependant b Source #

Work with the full BHResponse

withBHResponseParsedEsResponse :: forall a parsingContext. BHRequest parsingContext a -> BHRequest StatusDependant (ParsedEsResponse a) Source #

Enable working with ParsedEsResponse

keepBHResponse :: forall a parsingContext. BHRequest parsingContext a -> BHRequest StatusDependant (BHResponse StatusDependant a, a) Source #

Keep with the full BHResponse

joinBHResponse :: forall a parsingContext. BHRequest parsingContext (Either EsProtocolException (ParsedEsResponse a)) -> BHRequest parsingContext a Source #

Response

newtype BHResponse parsingContext body Source #

Result of a BHRequest

Constructors

BHResponse 

Instances

Instances details
Show (BHResponse parsingContext body) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client.BHRequest

Methods

showsPrec :: Int -> BHResponse parsingContext body -> ShowS #

show :: BHResponse parsingContext body -> String #

showList :: [BHResponse parsingContext body] -> ShowS #

Response interpretation

parseEsResponse :: FromJSON body => BHResponse parsingContext body -> Either EsProtocolException (ParsedEsResponse body) Source #

Tries to parse a response body as the expected type body and failing that tries to parse it as an EsError. All well-formed, JSON responses from elasticsearch should fall into these two categories. If they don't, a EsProtocolException will be thrown. If you encounter this, please report the full body it reports along with your Elasticsearch version.

parseEsResponseWith :: (MonadThrow m, FromJSON body) => (body -> Either String parsed) -> BHResponse parsingContext body -> m parsed Source #

Parse BHResponse with an arbitrary parser

isVersionConflict :: BHResponse parsingContext a -> Bool Source #

Was there an optimistic concurrency control conflict when indexing a document?

isSuccess :: BHResponse parsingContext a -> Bool Source #

Check '2xx' status codes

isCreated :: BHResponse parsingContext a -> Bool Source #

Check '201' status code

statusCodeIs :: (Int, Int) -> BHResponse parsingContext body -> Bool Source #

Check status code in range

Response handling

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

Fields

Instances

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

Defined in Database.Bloodhound.Internal.Client.BHRequest

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

Defined in Database.Bloodhound.Internal.Client.BHRequest

Methods

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

show :: EsResult a -> String #

showList :: [EsResult a] -> ShowS #

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

Defined in Database.Bloodhound.Internal.Client.BHRequest

Methods

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

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

data EsResultFound a Source #

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

Constructors

EsResultFound 

Fields

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 

Fields

Common results